Skip to content

Commit 5f14d16

Browse files
committed
[CSV-193] Fix incorrect method name 'withFirstRowAsHeader' in user
guide.</action>
1 parent fa437cb commit 5f14d16

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
</properties>
4040
<body>
4141
<release version="1.5" date="2016-MM-DD" description="Bug fix release">
42+
<action issue="CSV-193" type="fix" dev="ggregory" due-to="Matthias Wiehl">Fix incorrect method name 'withFirstRowAsHeader' in user guide.</action>
4243
<action issue="CSV-171" type="fix" dev="ggregory" due-to="Gary Gregory, Michael Graessle, Adrian Bridgett">Negative numeric values in the first column are always quoted in minimal mode.</action>
4344
<action issue="CSV-187" type="update" dev="ggregory" due-to="Gary Gregory">Update platform requirement from Java 6 to 7.</action>
4445
<action issue="CSV-189" type="add" dev="ggregory" due-to="Peter Holzwarth, Gary Gregory">CSVParser: Add factory method accepting InputStream.</action>

src/site/xdoc/user-guide.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ for (CSVRecord record : records) {
143143
Some CSV files define header names in their first record. If configured, Apache Commons CSV can parse
144144
the header names from the first record:
145145
<source>Reader in = new FileReader(&quot;path/to/file.csv&quot;);
146-
Iterable&lt;CSVRecord&gt; records = CSVFormat.RFC4180.withFirstRowAsHeader().parse(in);
146+
Iterable&lt;CSVRecord&gt; records = CSVFormat.RFC4180.withFirstRecordAsHeader().parse(in);
147147
for (CSVRecord record : records) {
148148
String id = record.get("ID");
149149
String customerNo = record.get("CustomerNo");

0 commit comments

Comments
 (0)