Skip to content

Commit 7a64f9d

Browse files
authored
Merge pull request #110 from MewX/patch-1
Updated YAML README.md
2 parents d9e239d + b03f47b commit 7a64f9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yaml/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ but you can also just use underlying `YAMLFactory` and parser it produces, for e
4141

4242
```java
4343
YAMLFactory factory = new YAMLFactory();
44-
JsonParser parser = factory.createJsonParser(yamlString); // don't be fooled by method name...
44+
YAMLParser parser = factory.createParser(yamlString);
4545
while (parser.nextToken() != null) {
4646
// do something!
4747
}

0 commit comments

Comments
 (0)