white
This commit is contained in:
parent
f94d7463aa
commit
084fee1475
@ -12,6 +12,9 @@ func main() {
|
|||||||
for j := 1; j <= 10; j++ { // That type of loop is common. We can do it on one
|
for j := 1; j <= 10; j++ { // That type of loop is common. We can do it on one
|
||||||
fmt.Println(j) // line.
|
fmt.Println(j) // line.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for { // `for` without a condition will loop until you
|
||||||
|
return
|
||||||
|
}
|
||||||
} // There are other forms of `for`; we'll see them
|
} // There are other forms of `for`; we'll see them
|
||||||
// later.
|
// later.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user