Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
f81abb9d
Commit
f81abb9d
authored
Jun 05, 2010
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tutorial: fix one-word mistake in echo example
R=rsc, iant CC=golang-dev
https://golang.org/cl/1567041
parent
64784801
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
doc/go_tutorial.html
doc/go_tutorial.html
+1
-1
doc/go_tutorial.txt
doc/go_tutorial.txt
+1
-1
No files found.
doc/go_tutorial.html
View file @
f81abb9d
...
...
@@ -221,7 +221,7 @@ are mandatory. The same applies to the <code>if</code> and <code>switch</code>
Later examples will show some other ways
<code>
for
</code>
can be written.
<p>
The body of the loop builds up the string
<code>
s
</code>
by appending (using
<code>
+=
</code>
)
the
flag
s and separating spaces. After the loop, if the
<code>
-n
</code>
flag is not
the
argument
s and separating spaces. After the loop, if the
<code>
-n
</code>
flag is not
set, the program appends a newline. Finally, it writes the result.
<p>
Notice that
<code>
main.main
</code>
is a niladic function with no return type.
...
...
doc/go_tutorial.txt
View file @
f81abb9d
...
...
@@ -173,7 +173,7 @@ are mandatory. The same applies to the "if" and "switch" statements.
Later examples will show some other ways "for" can be written.
The body of the loop builds up the string "s" by appending (using "+=")
the
flag
s and separating spaces. After the loop, if the "-n" flag is not
the
argument
s and separating spaces. After the loop, if the "-n" flag is not
set, the program appends a newline. Finally, it writes the result.
Notice that "main.main" is a niladic function with no return type.
...
...
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