Commit 4feb47bc authored by Eric Lagergren's avatar Eric Lagergren Committed by Brad Fitzpatrick

encoding/csv: clarify that TrimLeadingSpace can trim the delimiter

Fixes #14464

Change-Id: Iafc21641cca7d35b7a5631cfc94742ee8e7d5042
Reviewed-on: https://go-review.googlesource.com/19861Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 039d455f
......@@ -99,6 +99,8 @@ var (
// non-doubled quote may appear in a quoted field.
//
// If TrimLeadingSpace is true, leading white space in a field is ignored.
// If the field delimiter is white space, TrimLeadingSpace will trim the
// delimiter.
type Reader struct {
Comma rune // field delimiter (set to ',' by NewReader)
Comment rune // comment character for start of line
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment