Skip to content

Commit 706ee67

Browse files
committed
Fix misprint in ScalaDocs
1 parent 2b90aea commit 706ee67

File tree

3 files changed

+6
-6
lines changed
  • jsoniter-scala-core

3 files changed

+6
-6
lines changed

jsoniter-scala-core/js/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/core/JsonReader.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ final class JsonReader private[jsoniter_scala](
120120

121121
/**
122122
* Sets the current read head position as a mark.
123-
* Should be followed by `restMark()` or `rollbackToMark()` calls.
124-
* Pair of `setMark()` and `restMark()` or `setMark()` and `rollbackToMark()` calls cannot be nested.
123+
* Should be followed by `resetMark()` or `rollbackToMark()` calls.
124+
* Pair of `setMark()` and `resetMark()` or `setMark()` and `rollbackToMark()` calls cannot be nested.
125125
*/
126126
def setMark(): Unit = mark = head
127127

jsoniter-scala-core/jvm/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/core/JsonReader.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ final class JsonReader private[jsoniter_scala](
120120

121121
/**
122122
* Sets the current read head position as a mark.
123-
* Should be followed by `restMark()` or `rollbackToMark()` calls.
124-
* Pair of `setMark()` and `restMark()` or `setMark()` and `rollbackToMark()` calls cannot be nested.
123+
* Should be followed by `resetMark()` or `rollbackToMark()` calls.
124+
* Pair of `setMark()` and `resetMark()` or `setMark()` and `rollbackToMark()` calls cannot be nested.
125125
*/
126126
def setMark(): Unit = mark = head
127127

jsoniter-scala-core/native/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/core/JsonReader.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ final class JsonReader private[jsoniter_scala](
120120

121121
/**
122122
* Sets the current read head position as a mark.
123-
* Should be followed by `restMark()` or `rollbackToMark()` calls.
124-
* Pair of `setMark()` and `restMark()` or `setMark()` and `rollbackToMark()` calls cannot be nested.
123+
* Should be followed by `resetMark()` or `rollbackToMark()` calls.
124+
* Pair of `setMark()` and `resetMark()` or `setMark()` and `rollbackToMark()` calls cannot be nested.
125125
*/
126126
def setMark(): Unit = mark = head
127127

0 commit comments

Comments
 (0)