mirror of
https://github.com/golang/go
synced 2024-11-24 14:00:15 -07:00
tutorial: fix one-word mistake in echo example
R=rsc, iant CC=golang-dev https://golang.org/cl/1567041
This commit is contained in:
parent
64784801cd
commit
f81abb9dd8
@ -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.
|
Later examples will show some other ways <code>for</code> can be written.
|
||||||
<p>
|
<p>
|
||||||
The body of the loop builds up the string <code>s</code> by appending (using <code>+=</code>)
|
The body of the loop builds up the string <code>s</code> by appending (using <code>+=</code>)
|
||||||
the flags and separating spaces. After the loop, if the <code>-n</code> flag is not
|
the arguments 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.
|
set, the program appends a newline. Finally, it writes the result.
|
||||||
<p>
|
<p>
|
||||||
Notice that <code>main.main</code> is a niladic function with no return type.
|
Notice that <code>main.main</code> is a niladic function with no return type.
|
||||||
|
@ -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.
|
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 body of the loop builds up the string "s" by appending (using "+=")
|
||||||
the flags and separating spaces. After the loop, if the "-n" flag is not
|
the arguments and separating spaces. After the loop, if the "-n" flag is not
|
||||||
set, the program appends a newline. Finally, it writes the result.
|
set, the program appends a newline. Finally, it writes the result.
|
||||||
|
|
||||||
Notice that "main.main" is a niladic function with no return type.
|
Notice that "main.main" is a niladic function with no return type.
|
||||||
|
Loading…
Reference in New Issue
Block a user