1
0
mirror of https://github.com/golang/go synced 2024-11-24 12:10:03 -07:00

fix naked < as reported by pwil3058@gmail.com

R=rsc
CC=pwil3058
https://golang.org/cl/174087
This commit is contained in:
Rob Pike 2009-12-14 13:30:11 +11:00
parent d14c813377
commit bbd4cb382a
2 changed files with 2 additions and 2 deletions

View 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

View 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