Edits to for re: continue

Ref #122.
This commit is contained in:
Mark McGranaghan
2016-12-27 13:30:55 -08:00
parent c0e0f725d2
commit 1b53607cd5
4 changed files with 9 additions and 11 deletions

View File

@@ -27,8 +27,9 @@ func main() {
break
}
// You can also `continue` to the next loop
for n := 0; n <= 9; n++ {
// You can also `continue` to the next iteration of
// the loop.
for n := 0; n <= 5; n++ {
if n%2 == 0 {
continue
}

View File

@@ -1,2 +1,2 @@
0567bfd0e134cfd06f893c445dae72dd8d6064f6
egSvQrHmW6
33056d6b36f9894fb6359c9cf2ef8725bbdafa19
KNLLSX4Io_

View File

@@ -9,8 +9,6 @@ loop
1
3
5
7
9
# We'll see some other `for` forms later when we look at
# `range` statements, channels, and other data