diff --git a/src/site/xdoc/user-guide.xml b/src/site/xdoc/user-guide.xml index 40e63dc5..baf655a2 100644 --- a/src/site/xdoc/user-guide.xml +++ b/src/site/xdoc/user-guide.xml @@ -27,8 +27,8 @@ limitations under the License. Reader in = new FileReader("path/to/file.csv"); Iterable<CSVRecord> records = CSVFormat.EXCEL.parse(in); for (CSVRecord record : records) { - String lastName = record.get("Last Name"); - String firstName = record.get("First Name"); + String lastName = record.get("Last Name"); + String firstName = record.get("First Name"); }
@@ -42,13 +42,13 @@ for (CSVRecord record : records) { final Reader reader = new InputStreamReader(new BOMInputStream(url.openStream()), "UTF-8"); final CSVParser parser = new CSVParser(reader, CSVFormat.EXCEL.withHeader()); try { - for (final CSVRecord record : parser) { - final String string = record.get("SomeColumn"); - ... - } + for (final CSVRecord record : parser) { + final String string = record.get("SomeColumn"); + ... + } } finally { - parser.close(); - reader.close(); + parser.close(); + reader.close(); }