Skip to content

Commit 09dbf3d

Browse files
author
David Barda
committed
Added missing types for range
1 parent f46f423 commit 09dbf3d

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)