We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
// WriteTo implements the io.WriterTo interface. func (r *Reader) WriteTo(w io.Writer) (n int64, err error) { r.prevRune = -1 if r.i >= len(r.s) { return 0, io.EOF } The io.EOF should be nil. This breaks: package main import ( "bytes" "log" "os/exec" ) func main() { cmd := exec.Command("cat") cmd.Stdin = bytes.NewReader(nil) err := cmd.Run() if err != nil { log.Fatal(err) } } Obviously there are simpler tests.
The text was updated successfully, but these errors were encountered:
Comment 1:
Btw, this isn't related to issue #4403. I changed this line to a panic and it didn't panic.
Sorry, something went wrong.
Comment 2:
Sent http://golang.org/cl/6855083
Owner changed to @bradfitz.
Comment 3:
This issue was closed by revision c8fa7dc.
Status changed to Fixed.
No branches or pull requests
The text was updated successfully, but these errors were encountered: