Skip to content

Commit

Permalink
Correct documentation regarding parser.result (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdih authored and Brian Mock committed Sep 6, 2019
1 parent a9a89be commit 74a6345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion API.md
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ The same caveat for contramap above applies to promap.

## parser.result(value)

Returns a new parser with the same behavior, but which yields `value`. Equivalent to `parser.map(function(x) { return x; }.bind(value))`.
Returns a new parser with the same behavior, but which yields `value`. Equivalent to `parser.map(function(x) { return x; }.bind(null, value))`.

## parser.fallback(value)

Expand Down

0 comments on commit 74a6345

Please sign in to comment.