Fix doc comment typo
This commit is contained in:
parent
e368fd1764
commit
ef26d9496f
@ -219,7 +219,7 @@ func Choose[In, Out any](p Parser[In, Out], ps ...Parser[In, Out]) Parser[In, Ou
|
||||
// Try will pretend that no input was consumed. This allows infinite
|
||||
// lookahead: Since Choose only calls another parser when the previous
|
||||
// parser consumed nothing, Try will allow backing out of a complex
|
||||
// parser that did partially succeeded.
|
||||
// parser that partially succeeded.
|
||||
func Try[In, Out any](p Parser[In, Out]) Parser[In, Out] {
|
||||
return func(input State[In]) (Result[In, Out], error) {
|
||||
result, err := p(input)
|
||||
|
Loading…
Reference in New Issue
Block a user