From: Eric Lagergren Date: Wed, 24 Feb 2016 02:19:52 +0000 (-0800) Subject: encoding/csv: clarify that TrimLeadingSpace can trim the delimiter X-Git-Tag: go1.7beta1~1742 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4feb47bc765d2cd7d774b0a28b06e8d81a1affe7;p=gostls13.git encoding/csv: clarify that TrimLeadingSpace can trim the delimiter Fixes #14464 Change-Id: Iafc21641cca7d35b7a5631cfc94742ee8e7d5042 Reviewed-on: https://go-review.googlesource.com/19861 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/encoding/csv/reader.go b/src/encoding/csv/reader.go index a6bb780bf2..816ed26754 100644 --- a/src/encoding/csv/reader.go +++ b/src/encoding/csv/reader.go @@ -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