From 084fee1475df9f208b456831135887c5957e73f2 Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Thu, 20 Sep 2012 20:33:34 -0700 Subject: [PATCH] white --- src/10-for.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/10-for.go b/src/10-for.go index d064bd8..fae3f5e 100644 --- a/src/10-for.go +++ b/src/10-for.go @@ -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. -