diff options
author | Christopher Wedgwood <cw@f00f.org> | 2010-02-25 20:06:41 -0800 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2010-02-25 20:06:41 -0800 |
commit | 5de2e1c5bb0e72ee3e7bf301ea388c0c5efe2a1b (patch) | |
tree | 857b4575a25e51e00199c03cfea166722d133def | |
parent | 8fbd5f8a8273054e4a1cdae39b26f0a34534b01c (diff) | |
download | go-5de2e1c5bb0e72ee3e7bf301ea388c0c5efe2a1b.tar.gz go-5de2e1c5bb0e72ee3e7bf301ea388c0c5efe2a1b.zip |
doc: Use byte("...") over byte{...}
R=rsc, r
CC=golang-dev
https://golang.org/cl/224069
-rw-r--r-- | doc/progs/helloworld3.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/progs/helloworld3.go b/doc/progs/helloworld3.go index 5655c7489d..e065f02e6b 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 { |