tighten comments
This commit is contained in:
parent
a41232160f
commit
0c9e7e95c2
@ -26,9 +26,9 @@ func main() {
|
|||||||
for {
|
for {
|
||||||
inBytes, pfx, err := in.ReadLine()
|
inBytes, pfx, err := in.ReadLine()
|
||||||
|
|
||||||
// The `EOF` error is expected when we reach the end
|
// The `EOF` error is expected when we reach the
|
||||||
// of the input, so exit gracefully in that case.
|
// end of the input, so exit gracefully in that
|
||||||
// Otherwise there is a problem.
|
// case. Otherwise there is a problem.
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -36,8 +36,8 @@ func main() {
|
|||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Write out the upercased bytes, checking for an error
|
// Write out the uppercased bytes, checking for an
|
||||||
// here as well.
|
// error here as well.
|
||||||
outBytes := bytes.ToUpper(inBytes)
|
outBytes := bytes.ToUpper(inBytes)
|
||||||
_, err = out.Write(outBytes)
|
_, err = out.Write(outBytes)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user