mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
fixups in the tutorial
also add a section about compiling programs because some found it surprising not to have one R=rsc CC=go-dev http://go/go-review/1018011
This commit is contained in:
parent
dde666dab5
commit
83f0b718ed
7 changed files with 135 additions and 74 deletions
|
|
@ -29,8 +29,8 @@ func strings() {
|
|||
|
||||
type day struct {
|
||||
num int;
|
||||
short_name string;
|
||||
long_name string;
|
||||
shortName string;
|
||||
longName string;
|
||||
}
|
||||
|
||||
type dayArray struct {
|
||||
|
|
@ -56,7 +56,7 @@ func days() {
|
|||
panic()
|
||||
}
|
||||
for _, d := range data {
|
||||
fmt.Printf("%s ", d.long_name)
|
||||
fmt.Printf("%s ", d.longName)
|
||||
}
|
||||
fmt.Printf("\n")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue