From: Paul Borman Date: Mon, 5 Mar 2012 18:34:12 +0000 (-0500) Subject: csv: clarify what a negative FieldsPerRecord means X-Git-Tag: weekly.2012-03-13~232 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1b311776c499e35444d891206e9975995ffc293a;p=gostls13.git csv: clarify what a negative FieldsPerRecord means R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5729068 --- diff --git a/src/pkg/encoding/csv/reader.go b/src/pkg/encoding/csv/reader.go index 9aa398e58b..db4d988526 100644 --- a/src/pkg/encoding/csv/reader.go +++ b/src/pkg/encoding/csv/reader.go @@ -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.