Skip to content

Commit 46ce06d

Browse files
committed
We are really iterating over records here
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1522811 13f79535-47bb-0310-9956-ffa450edef68
1 parent 67155b3 commit 46ce06d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/site/xdoc/index.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ limitations under the License.
2626
<p>Commons CSV reads and writes files in variations of the Comma Separated Value (CSV) format.</p>
2727
<p>To parse an Excel CSV file, write:</p>
2828
<source>Reader in = new FileReader(&quot;path/to/file.csv&quot;);
29-
Iterable&lt;CSVRecord&gt; parser = CSVFormat.EXCEL.parse(in);
30-
for (CSVRecord record : parser) {
29+
Iterable&lt;CSVRecord&gt; records = CSVFormat.EXCEL.parse(in);
30+
for (CSVRecord record : records) {
3131
String lastName = record.get("Last Name");
3232
String firstName = record.get("First Name");
3333
}</source>

0 commit comments

Comments
 (0)