Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
bbd4cb38
Commit
bbd4cb38
authored
Dec 14, 2009
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix naked < as reported by pwil3058@gmail.com
R=rsc CC=pwil3058
https://golang.org/cl/174087
parent
d14c8133
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
go_tutorial.html
doc/go_tutorial.html
+1
-1
go_tutorial.txt
doc/go_tutorial.txt
+1
-1
No files found.
doc/go_tutorial.html
View file @
bbd4cb38
...
...
@@ -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
...
...
doc/go_tutorial.txt
View file @
bbd4cb38
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment