This commit is contained in:
Mark McGranaghan 2012-09-23 11:27:47 -04:00
parent 38960cfc90
commit dfd2c39463

View File

@ -18,7 +18,7 @@ func main() {
newline := []byte("\n") newline := []byte("\n")
// The buffered reader gives us `ReadLine`. // The buffered reader gives us `ReadLine`.
in := bufio.NewReader(os.Stdin) in := bufio.NewReader(os.Stdin)
out := os.Stdout out := os.Stdout
// If successful, each `ReadLine` returns bytes and a // If successful, each `ReadLine` returns bytes and a
@ -33,7 +33,7 @@ func main() {
return return
} }
if err != nil { if err != nil {
panic (err) panic(err)
} }
// `bytes.ToUpper` works directly on bytes, so we don't // `bytes.ToUpper` works directly on bytes, so we don't