Skip to content

Commit

Permalink
Updateoptional combinator documentation (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
elfenlaid authored Apr 17, 2024
1 parent 0faac64 commit dce8ab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nimble_parsec.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1776,7 +1776,7 @@ defmodule NimbleParsec do
@doc """
Marks the given combinator as `optional`.
It is equivalent to `choice([optional, empty()])`.
It is equivalent to `choice([combinator, empty()])`.
"""
@spec optional(t) :: t
@spec optional(t, t) :: t
Expand Down

0 comments on commit dce8ab5

Please sign in to comment.