]> Cypherpunks repositories - gostls13.git/commitdiff
tutorial: fix one-word mistake in echo example
authorRob Pike <r@golang.org>
Sat, 5 Jun 2010 19:06:18 +0000 (12:06 -0700)
committerRob Pike <r@golang.org>
Sat, 5 Jun 2010 19:06:18 +0000 (12:06 -0700)
R=rsc, iant
CC=golang-dev
https://golang.org/cl/1567041

doc/go_tutorial.html
doc/go_tutorial.txt

index 4641e065dec7588f8a927c2b305951ee2fd0c815..40fef306935df28e1611420692f268adfb9349d6 100644 (file)
@@ -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.
index 21dffad4f8dddbdd4358c664dc4107db818ed375..76dba34efd498de812e983a1ec3d839eba1fd40a 100644 (file)
@@ -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 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.
 
 Notice that "main.main" is a niladic function with no return type.