summaryrefslogtreecommitdiff
path: root/doc/go_tutorial.html
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2010-06-05 12:06:18 -0700
committerRob Pike <r@golang.org>2010-06-05 12:06:18 -0700
commitcde2c7763934e3959fedfb03ccf1295e87aca72c (patch)
treeb1a1fd6ddf6f4ce32fab50d3a86ddf6ca227565a /doc/go_tutorial.html
parent84e0cb8104554f970b826da714fa36f3460554d5 (diff)
downloadgolang-cde2c7763934e3959fedfb03ccf1295e87aca72c.tar.gz
tutorial: fix one-word mistake in echo example
R=rsc, iant CC=golang-dev http://codereview.appspot.com/1567041
Diffstat (limited to 'doc/go_tutorial.html')
-rw-r--r--doc/go_tutorial.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/go_tutorial.html b/doc/go_tutorial.html
index 4641e065d..40fef3069 100644
--- a/doc/go_tutorial.html
+++ b/doc/go_tutorial.html
@@ -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 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.
<p>
Notice that <code>main.main</code> is a niladic function with no return type.