1
0
mirror of https://github.com/golang/go synced 2024-11-24 23:57:57 -07:00

csv: clarify what a negative FieldsPerRecord means

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5729068
This commit is contained in:
Paul Borman 2012-03-05 13:34:12 -05:00 committed by Russ Cox
parent 8dbd9d746d
commit 1b311776c4

View File

@ -92,7 +92,8 @@ var (
// If FieldsPerRecord is positive, Read requires each record to
// have the given number of fields. If FieldsPerRecord is 0, Read sets it to
// the number of fields in the first record, so that future records must
// have the same field count.
// have the same field count. If FieldsPerRecord is negative, no check is
// made and records may have a variable number of fields.
//
// If LazyQuotes is true, a quote may appear in an unquoted field and a
// non-doubled quote may appear in a quoted field.