From f68035859efc1bc67fa00dbf5f794ce20b6e5b8b Mon Sep 17 00:00:00 2001 From: Thomas Vos Date: Fri, 15 Feb 2019 20:15:38 +0100 Subject: [PATCH] Fix typo in documentation for JsonReader.peekJson() (#797) --- moshi/src/main/java/com/squareup/moshi/JsonReader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()