summaryrefslogtreecommitdiff
path: root/doc/progs/echo.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-11-07 18:05:30 -0800
committerRuss Cox <rsc@golang.org>2009-11-07 18:05:30 -0800
commitb5d20175786c42b2b87ee4a31ff78968a52f71ac (patch)
tree16ba7a9135c971b839c51420ff9e6dfd94f68a57 /doc/progs/echo.go
parent2e13596e82b114031f33f603db13e1a5cdeff8cc (diff)
downloadgolang-b5d20175786c42b2b87ee4a31ff78968a52f71ac.tar.gz
tutorial fixes
R=r CC=go-dev http://go/go-review/1024014
Diffstat (limited to 'doc/progs/echo.go')
-rw-r--r--doc/progs/echo.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/progs/echo.go b/doc/progs/echo.go
index caf911733..26a2f68b5 100644
--- a/doc/progs/echo.go
+++ b/doc/progs/echo.go
@@ -9,7 +9,7 @@ import (
"flag"; // command line option parser
)
-var n_flag = flag.Bool("n", false, "don't print final newline")
+var omitNewline = flag.Bool("n", false, "don't print final newline")
const (
Space = " ";
@@ -25,7 +25,7 @@ func main() {
}
s += flag.Arg(i)
}
- if !*n_flag {
+ if !*omitNewline {
s += Newline
}
os.Stdout.WriteString(s);