diff options
Diffstat (limited to 'doc/progs/cat_rot13.go')
| -rw-r--r-- | doc/progs/cat_rot13.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/progs/cat_rot13.go b/doc/progs/cat_rot13.go index 618ae9111..aba8b4c7f 100644 --- a/doc/progs/cat_rot13.go +++ b/doc/progs/cat_rot13.go @@ -57,7 +57,7 @@ func cat(r reader) { r = newRotate13(r) } for { - switch nr, er := r.Read(buf); { + switch nr, er := r.Read(&buf); { case nr < 0: fmt.Fprintf(os.Stderr, "error reading from %s: %s\n", r.String(), er.String()); sys.Exit(1); |
