tweak
This commit is contained in:
parent
691fa2dfe1
commit
fd67d524c1
@ -36,12 +36,9 @@ func main() {
|
|||||||
panic(err)
|
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
|
// Write out the upercased bytes, checking for an error
|
||||||
// here as well.
|
// here as well.
|
||||||
|
outBytes := bytes.ToUpper(inBytes)
|
||||||
_, err = out.Write(outBytes)
|
_, err = out.Write(outBytes)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user