From d186eeb30f94bd0fed6c6aca62d8c7fcd3207cc7 Mon Sep 17 00:00:00 2001 From: Christopher Wedgwood Date: Thu, 25 Feb 2010 20:06:41 -0800 Subject: doc: Use byte("...") over byte{...} R=rsc, r CC=golang-dev http://codereview.appspot.com/224069 Committer: Rob Pike --- doc/progs/helloworld3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/progs/helloworld3.go') 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 { -- cgit v1.2.3