summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Wedgwood <cw@f00f.org>2010-02-25 20:06:41 -0800
committerChristopher Wedgwood <cw@f00f.org>2010-02-25 20:06:41 -0800
commitd186eeb30f94bd0fed6c6aca62d8c7fcd3207cc7 (patch)
tree83c2c909086f39512b39cdc3ec5c6cdd2710be49
parent5573ba3e9446ac831263a70ef2c213c0cb2ed191 (diff)
downloadgolang-d186eeb30f94bd0fed6c6aca62d8c7fcd3207cc7.tar.gz
doc: Use byte("...") over byte{...}
R=rsc, r CC=golang-dev http://codereview.appspot.com/224069 Committer: Rob Pike <r@golang.org>
-rw-r--r--doc/progs/helloworld3.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/progs/helloworld3.go b/doc/progs/helloworld3.go
index 5655c7489..e065f02e6 100644
--- a/doc/progs/helloworld3.go
+++ b/doc/progs/helloworld3.go
@@ -11,7 +11,7 @@ import (
)
func main() {
- hello := []byte{'h', 'e', 'l', 'l', 'o', ',', ' ', 'w', 'o', 'r', 'l', 'd', '\n'}
+ hello := []byte("hello, world\n")
file.Stdout.Write(hello)
file, err := file.Open("/does/not/exist", 0, 0)
if file == nil {