diff --git a/moshi/src/main/java/com/squareup/moshi/JsonReader.java b/moshi/src/main/java/com/squareup/moshi/JsonReader.java index ca9431e..1c3b124 100644 --- a/moshi/src/main/java/com/squareup/moshi/JsonReader.java +++ b/moshi/src/main/java/com/squareup/moshi/JsonReader.java @@ -478,7 +478,7 @@ public abstract class JsonReader implements Closeable { * 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. * - *
For example, we can use {@code peek()} to lookahead and read the same data multiple times. + *
For example, we can use {@code peekJson()} to lookahead and read the same data multiple times. * *
{@code * @@ -489,7 +489,7 @@ public abstract class JsonReader implements Closeable { * jsonReader.beginArray(); * jsonReader.nextInt(); // Returns 123, reader contains 456, 789 and ]. * - * JsonReader peek = reader.peekReader(); + * JsonReader peek = reader.peekJson(); * peek.nextInt() // Returns 456. * peek.nextInt() // Returns 789. * peek.endArray()