Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: fix os.Pipe usage in short variable declarations example #27384

Closed
dgrmsh opened this issue Aug 30, 2018 · 1 comment
Closed

doc: fix os.Pipe usage in short variable declarations example #27384

dgrmsh opened this issue Aug 30, 2018 · 1 comment

Comments

@dgrmsh
Copy link
Contributor

dgrmsh commented Aug 30, 2018

go version go1.10.3 linux/amd64

https://golang.org/ref/spec#Short_variable_declarations has the following call as an example

r, w := os.Pipe(fd) // os.Pipe() returns two values

This does not match actual signature for os.Pipe at https://golang.org/pkg/os/#Pipe

func Pipe() (r *File, w *File, err error)

I'll send out a change to fix this shortly.

@gopherbot
Copy link
Contributor

Change https://golang.org/cl/132284 mentions this issue: doc: fix os.Pipe() call in the example.

@golang golang locked and limited conversation to collaborators Aug 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants