diff options
author | Russ Cox <rsc@golang.org> | 2009-10-06 14:55:39 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-10-06 14:55:39 -0700 |
commit | d2c438c32027a1bcaa2a20e7626495fedcef804a (patch) | |
tree | d4e306848aa66193a42b8531963e246bdb4ed364 /doc/progs/cat.go | |
parent | a7bf4bfaf01a627bbb1be972608820be08e80512 (diff) | |
download | golang-d2c438c32027a1bcaa2a20e7626495fedcef804a.tar.gz |
another round of gofmt applications
R=gri
DELTA=900 (106 added, 31 deleted, 763 changed)
OCL=35384
CL=35396
Diffstat (limited to 'doc/progs/cat.go')
-rw-r--r-- | doc/progs/cat.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/progs/cat.go b/doc/progs/cat.go index f9f00b6e3..824b92459 100644 --- a/doc/progs/cat.go +++ b/doc/progs/cat.go @@ -19,7 +19,7 @@ func cat(f *file.File) { case nr < 0: fmt.Fprintf(os.Stderr, "error reading from %s: %s\n", f.String(), er.String()); os.Exit(1); - case nr == 0: // EOF + case nr == 0: // EOF return; case nr > 0: if nw, ew := file.Stdout.Write(buf[0:nr]); nw != nr { @@ -30,7 +30,7 @@ func cat(f *file.File) { } func main() { - flag.Parse(); // Scans the arg list and sets up flags + flag.Parse(); // Scans the arg list and sets up flags if flag.NArg() == 0 { cat(file.Stdin); } |