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:
parent
d14c813377
commit
bbd4cb382a
@ -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 < len(a); i++ { ... }
|
||||
</pre>
|
||||
<p>
|
||||
to loop over the elements of a slice (or map or ...) , we could write
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user