From: Christopher Wedgwood Date: Fri, 26 Feb 2010 04:06:41 +0000 (-0800) Subject: doc: Use byte("...") over byte{...} X-Git-Tag: weekly.2010-03-04~28 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5de2e1c5bb0e72ee3e7bf301ea388c0c5efe2a1b;p=gostls13.git doc: Use byte("...") over byte{...} R=rsc, r CC=golang-dev https://golang.org/cl/224069 --- 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 {