Skip to content

Commit

Permalink
Added missing types for range
Browse files Browse the repository at this point in the history
  • Loading branch information
David Barda committed May 20, 2017
1 parent f46f423 commit 09dbf3d
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 09dbf3d

Please sign in to comment.