mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
changed the second for loop example to label the v variable as a key instead of value
parent
c2311da019
commit
a31ff5e25e
2
Range.md
2
Range.md
@ -14,7 +14,7 @@ for k, v := range myMap {
|
||||
}
|
||||
|
||||
for v := range myChannel {
|
||||
log.Printf("value=%v", v)
|
||||
log.Printf("key=%v", v)
|
||||
}
|
||||
|
||||
for i, v := range myArray {
|
||||
|
Loading…
x
Reference in New Issue
Block a user