]> Cypherpunks repositories - gostls13.git/commit
doc: fix os.Pipe() call in the example.
authorDina Garmash <dgrmsh@gmail.com>
Thu, 30 Aug 2018 20:59:29 +0000 (16:59 -0400)
committerRobert Griesemer <gri@golang.org>
Fri, 31 Aug 2018 06:39:16 +0000 (06:39 +0000)
commit8a2b5f1f39152e45e6cfe6264612f00891d0327e
tree6cf557a5be8906c50015d4279e57d5edeaf8e333
parent58e970ed79807fd9d2a29e1dcd4e44fa867b5540
doc: fix os.Pipe() call in the example.

Short variable declarations example passes an fd argument to os.Pipe call.
However, os.Pipe() takes no arguments and returns 2 Files and an error:
https://golang.org/src/os/pipe_linux.go?s=319:360#L1

Fixes: #27384
Change-Id: I0a709f51e0878c57185d901b899d209f001dfcce
Reviewed-on: https://go-review.googlesource.com/132284
Reviewed-by: Robert Griesemer <gri@golang.org>
doc/go_spec.html