]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/csv: clarify that TrimLeadingSpace can trim the delimiter
authorEric Lagergren <ericscottlagergren@gmail.com>
Wed, 24 Feb 2016 02:19:52 +0000 (18:19 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 24 Feb 2016 18:42:09 +0000 (18:42 +0000)
Fixes #14464

Change-Id: Iafc21641cca7d35b7a5631cfc94742ee8e7d5042
Reviewed-on: https://go-review.googlesource.com/19861
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/encoding/csv/reader.go

index a6bb780bf28a0b76de6fd02e323665d1db8cd5fc..816ed26754277673433b9c4afc7e541acf2c0b3e 100644 (file)
@@ -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