From d8e92fd28adcac0209fb477b47401093d4f853be Mon Sep 17 00:00:00 2001 From: Sergey Mudrik Date: Mon, 27 Mar 2017 23:34:11 +0300 Subject: [PATCH] Changed doc about Each method --- byline.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/byline.go b/byline.go index 7fa1d78..781b52f 100644 --- a/byline.go +++ b/byline.go @@ -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)