Skip to content

Commit

Permalink
clean up 'recursive' parser description (#523)
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-m-davis authored Aug 12, 2023
1 parent 149faeb commit 4451483
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/shared/src/main/scala/cats/parse/Parser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1706,8 +1706,8 @@ object Parser {
def defer0[A](pa: => Parser0[A]): Parser0[A] =
Impl.Defer0(() => pa)

/** Build a recursive parser by assuming you have it Useful for parsing recurive structures, like
* for instance JSON.
/** Build a recursive parser by assuming you have it Useful for parsing recursive structures like
* JSON.
*/
def recursive[A](fn: Parser[A] => Parser[A]): Parser[A] = {
lazy val result: Parser[A] = fn(defer(result))
Expand Down

0 comments on commit 4451483

Please sign in to comment.