Skip to content

Commit

Permalink
io: clarify MultiReader documentation
Browse files Browse the repository at this point in the history
Fixes #7216.

LGTM=minux.ma
R=golang-codereviews, minux.ma
CC=golang-codereviews
https://golang.org/cl/54740044
  • Loading branch information
adg committed Jan 28, 2014
1 parent 9f8f0a1 commit 5be96aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pkg/io/multi.go
Expand Up @@ -26,7 +26,8 @@ func (mr *multiReader) Read(p []byte) (n int, err error) {

// MultiReader returns a Reader that's the logical concatenation of
// the provided input readers. They're read sequentially. Once all
// inputs are drained, Read will return EOF.
// inputs have returned EOF, Read will return EOF. If any of the readers
// return a non-nil, non-EOF error, Read will return that error.
func MultiReader(readers ...Reader) Reader {
return &multiReader{readers}
}
Expand Down

0 comments on commit 5be96aa

Please sign in to comment.