From 09dbf3d744ef9fca85c18fa34dc9177b1b32273d Mon Sep 17 00:00:00 2001 From: David Barda Date: Sat, 20 May 2017 22:41:17 +0300 Subject: [PATCH] Added missing types for range --- en/02.3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/02.3.md b/en/02.3.md index 9f7a9c50..cd31d6d7 100644 --- a/en/02.3.md +++ b/en/02.3.md @@ -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)