This commit is contained in:
Mark McGranaghan 2012-09-20 20:33:34 -07:00
parent f94d7463aa
commit 084fee1475

View File

@ -11,7 +11,10 @@ func main() {
for j := 1; j <= 10; j++ { // That type of loop is common. We can do it on one
fmt.Println(j) // line.
}
}
for { // `for` without a condition will loop until you
return
}
} // There are other forms of `for`; we'll see them
// later.