diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml index a1c3ced4..01ab1cfc 100644 --- a/src/site/xdoc/index.xml +++ b/src/site/xdoc/index.xml @@ -26,8 +26,8 @@ limitations under the License.

Commons CSV reads and writes files in variations of the Comma Separated Value (CSV) format.

To parse an Excel CSV file, write:

Reader in = new FileReader("path/to/file.csv"); -Iterable<CSVRecord> parser = CSVFormat.EXCEL.parse(in); -for (CSVRecord record : parser) { +Iterable<CSVRecord> records = CSVFormat.EXCEL.parse(in); +for (CSVRecord record : records) { String lastName = record.get("Last Name"); String firstName = record.get("First Name"); }