From: Rob Pike Date: Sat, 5 Jun 2010 19:06:18 +0000 (-0700) Subject: tutorial: fix one-word mistake in echo example X-Git-Tag: weekly.2010-06-09~20 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f81abb9dd84f6ad21c4eaf9908779a7ea2d10b26;p=gostls13.git tutorial: fix one-word mistake in echo example R=rsc, iant CC=golang-dev https://golang.org/cl/1567041 --- diff --git a/doc/go_tutorial.html b/doc/go_tutorial.html index 4641e065de..40fef30693 100644 --- a/doc/go_tutorial.html +++ b/doc/go_tutorial.html @@ -221,7 +221,7 @@ are mandatory. The same applies to the if and switch 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. diff --git a/doc/go_tutorial.txt b/doc/go_tutorial.txt index 21dffad4f8..76dba34efd 100644 --- a/doc/go_tutorial.txt +++ b/doc/go_tutorial.txt @@ -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.