Skip to content

Commit 5db6bd8

Browse files
committed
Update README.md.
1 parent 83ec779 commit 5db6bd8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ System.out.println(text); // Hello, World!
520520
The `CSVEncoder` class serializes a sequence of map or bean values to CSV. The list passed to the constructor represents both the names of the columns in the output document and the keys or properties to which those columns correspond. For example:
521521

522522
```java
523-
var maps = listOf(
523+
var rows = listOf(
524524
mapOf(
525525
entry("a", "hello"),
526526
entry("b", 123),
@@ -535,7 +535,7 @@ var maps = listOf(
535535

536536
var csvEncoder = new CSVEncoder(listOf("a", "b", "c"));
537537

538-
csvEncoder.write(maps, System.out);
538+
csvEncoder.write(rows, System.out);
539539
```
540540

541541
This code would produce the following output:

kilo-test/src/test/java/org/httprpc/kilo/test/Examples.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public static void textEncoderAndDecoder() throws IOException {
165165
}
166166

167167
public static void csvEncoder() throws IOException {
168-
var maps = listOf(
168+
var rows = listOf(
169169
mapOf(
170170
entry("a", "hello"),
171171
entry("b", 123),
@@ -180,7 +180,7 @@ public static void csvEncoder() throws IOException {
180180

181181
var csvEncoder = new CSVEncoder(listOf("a", "b", "c"));
182182

183-
csvEncoder.write(maps, System.out);
183+
csvEncoder.write(rows, System.out);
184184
}
185185

186186
public static void templateEncoder() throws Exception {

0 commit comments

Comments
 (0)