Skip to content

Commit 0440f3b

Browse files
authored
Merge pull request astaxie#845 from davebarda/master
Added missing types for range
2 parents f46f423 + 09dbf3d commit 0440f3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

en/02.3.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ There are two important operations in loops which are `break` and `continue`. `b
105105
// break prints 10、9、8、7、6
106106
// continue prints 10、9、8、7、6、4、3、2、1
107107
```
108-
`for` can read data from `slice` and `map` when it is used together with `range`.
108+
`for` can read data from `array`, `slice`, `map` and `string` when it is used together with `range`.
109109
```Go
110110
for k,v:=range map {
111111
fmt.Println("map's key:",k)

0 commit comments

Comments
 (0)