diff --git a/eBook/12.5.md b/eBook/12.5.md index 88b0a07..0b729ad 100644 --- a/eBook/12.5.md +++ b/eBook/12.5.md @@ -20,10 +20,10 @@ import ( func cat(r *bufio.Reader) { for { buf, err := r.ReadBytes('\n') + fmt.Fprintf(os.Stdout, "%s", buf) if err == io.EOF { break } - fmt.Fprintf(os.Stdout, "%s", buf) } return }