Fix typo in documentation for JsonReader.peekJson() (#797)
This commit is contained in:
parent
e04c80c1c6
commit
f68035859e
1 changed files with 2 additions and 2 deletions
|
@ -478,7 +478,7 @@ public abstract class JsonReader implements Closeable {
|
||||||
* Returns a new {@code JsonReader} that can read data from this {@code JsonReader} without
|
* Returns a new {@code JsonReader} that can read data from this {@code JsonReader} without
|
||||||
* consuming it. The returned reader becomes invalid once this one is next read or closed.
|
* consuming it. The returned reader becomes invalid once this one is next read or closed.
|
||||||
*
|
*
|
||||||
* <p>For example, we can use {@code peek()} to lookahead and read the same data multiple times.
|
* <p>For example, we can use {@code peekJson()} to lookahead and read the same data multiple times.
|
||||||
*
|
*
|
||||||
* <pre> {@code
|
* <pre> {@code
|
||||||
*
|
*
|
||||||
|
@ -489,7 +489,7 @@ public abstract class JsonReader implements Closeable {
|
||||||
* jsonReader.beginArray();
|
* jsonReader.beginArray();
|
||||||
* jsonReader.nextInt(); // Returns 123, reader contains 456, 789 and ].
|
* jsonReader.nextInt(); // Returns 123, reader contains 456, 789 and ].
|
||||||
*
|
*
|
||||||
* JsonReader peek = reader.peekReader();
|
* JsonReader peek = reader.peekJson();
|
||||||
* peek.nextInt() // Returns 456.
|
* peek.nextInt() // Returns 456.
|
||||||
* peek.nextInt() // Returns 789.
|
* peek.nextInt() // Returns 789.
|
||||||
* peek.endArray()
|
* peek.endArray()
|
||||||
|
|
Loading…
Reference in a new issue