From: Rob Pike Date: Mon, 14 Dec 2009 02:30:11 +0000 (+1100) Subject: fix naked < as reported by pwil3058@gmail.com X-Git-Tag: weekly.2009-12-22~70 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=bbd4cb382a6cdbf69bea445a261043b7fa7277c6;p=gostls13.git fix naked < as reported by pwil3058@gmail.com R=rsc CC=pwil3058 https://golang.org/cl/174087 --- diff --git a/doc/go_tutorial.html b/doc/go_tutorial.html index 9ed408d345..f3715f3bdf 100644 --- a/doc/go_tutorial.html +++ b/doc/go_tutorial.html @@ -355,7 +355,7 @@ By the way, another thing that works on strings, arrays, slices, maps and channels is the range clause on for loops. Instead of writing

-    for i := 0; i < len(a); i++ { ... }
+    for i := 0; i < len(a); i++ { ... }
 

to loop over the elements of a slice (or map or ...) , we could write diff --git a/doc/go_tutorial.txt b/doc/go_tutorial.txt index dae3c6815e..7c0ffac80c 100644 --- a/doc/go_tutorial.txt +++ b/doc/go_tutorial.txt @@ -278,7 +278,7 @@ slices, maps, and channels. By the way, another thing that works on strings, arrays, slices, maps and channels is the "range" clause on "for" loops. Instead of writing - for i := 0; i < len(a); i++ { ... } + for i := 0; i < len(a); i++ { ... } to loop over the elements of a slice (or map or ...) , we could write