]> Cypherpunks repositories - gostls13.git/commitdiff
fix naked < as reported by pwil3058@gmail.com
authorRob Pike <r@golang.org>
Mon, 14 Dec 2009 02:30:11 +0000 (13:30 +1100)
committerRob Pike <r@golang.org>
Mon, 14 Dec 2009 02:30:11 +0000 (13:30 +1100)
R=rsc
CC=pwil3058
https://golang.org/cl/174087

doc/go_tutorial.html
doc/go_tutorial.txt

index 9ed408d3455ceb451dae8ee09cebf70ede760cf7..f3715f3bdfb956d48fc932f549b2dabf1c305baa 100644 (file)
@@ -355,7 +355,7 @@ By the way, another thing that works on strings, arrays, slices, maps
 and channels is the <code>range</code> clause on <code>for</code> loops.  Instead of writing
 <p>
 <pre>
-    for i := 0; i < len(a); i++ { ... }
+    for i := 0; i &lt; len(a); i++ { ... }
 </pre>
 <p>
 to loop over the elements of a slice (or map or ...) , we could write
index dae3c6815e9c6a2477927726698d8405ae309628..7c0ffac80c9b8d6d6c6f3f1a65149fb077e32158 100644 (file)
@@ -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 &lt; len(a); i++ { ... }
 
 to loop over the elements of a slice (or map or ...) , we could write