Commit 5de2e1c5 authored by Christopher Wedgwood's avatar Christopher Wedgwood Committed by Rob Pike

doc: Use byte("...") over byte{...}

R=rsc, r
CC=golang-dev
https://golang.org/cl/224069
parent 8fbd5f8a
......@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment