mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Fixed style
Didn't uppercased 'range' in the beginning of the sentence since it's a language keyword.
This commit is contained in:
parent
cfa26f23fd
commit
26166afc65
@ -178,8 +178,8 @@ func learnFlowControl() {
|
||||
continue // Unreached.
|
||||
}
|
||||
|
||||
// you can use range to iterate over an array, a slice, a string, a map, or a channel.
|
||||
// range returns one (channel) or two values (array, slice, string and map)
|
||||
// You can use range to iterate over an array, a slice, a string, a map, or a channel.
|
||||
// range returns one (channel) or two values (array, slice, string and map).
|
||||
for key, value := range map[string]int{"one": 1, "two": 2, "three": 3} {
|
||||
// for each pair in the map, print key and value
|
||||
fmt.Printf("key=%s, value=%d\n", key, value)
|
||||
|
Loading…
Reference in New Issue
Block a user