Skip to content

Commit

Permalink
Merge pull request astaxie#845 from davebarda/master
Browse files Browse the repository at this point in the history
Added missing types for range
  • Loading branch information
astaxie authored May 21, 2017
2 parents f46f423 + 09dbf3d commit 0440f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en/02.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ There are two important operations in loops which are `break` and `continue`. `b
// break prints 10、9、8、7、6
// continue prints 10、9、8、7、6、4、3、2、1
```
`for` can read data from `slice` and `map` when it is used together with `range`.
`for` can read data from `array`, `slice`, `map` and `string` when it is used together with `range`.
```Go
for k,v:=range map {
fmt.Println("map's key:",k)
Expand Down

0 comments on commit 0440f3b

Please sign in to comment.