This commit is contained in:
Mark McGranaghan 2012-09-23 10:29:44 -07:00
parent 691fa2dfe1
commit fd67d524c1

View File

@ -36,12 +36,9 @@ func main() {
panic(err)
}
// `bytes.ToUpper` works directly on bytes, so we don't
// need to convert to a string for `strings.ToUpper`.
outBytes := bytes.ToUpper(inBytes)
// Write out the upercased bytes, checking for an error
// here as well.
outBytes := bytes.ToUpper(inBytes)
_, err = out.Write(outBytes)
if err != nil {
panic(err)