Skip to content

Commit

Permalink
Changed doc about Each method
Browse files Browse the repository at this point in the history
  • Loading branch information
msoap committed Mar 27, 2017
1 parent cd0111e commit d8e92fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion byline.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ func (lr *Reader) MapStringErr(filterFn func(string) (string, error)) *Reader {
})
}

// Each - processing each line
// Each - processing each line.
// Do not save the value of the byte slice, since it can change in the next filter-steps.
func (lr *Reader) Each(filterFn func([]byte)) *Reader {
return lr.MapErr(func(line []byte) ([]byte, error) {
filterFn(line)
Expand Down

0 comments on commit d8e92fd

Please sign in to comment.