Skip to content

Commit ae4f827

Browse files
authored
Merge pull request #4 from mkantor/docblock
Clarify `flatMap`'s docblock
2 parents f7d528b + 7283436 commit ae4f827

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/combinators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const butNot = <Output>(
5454

5555
/**
5656
* Map the output of `parser` to another `Parser` which is then applied to the
57-
* remaining input, flattening the parse results.
57+
* remaining input, returning the result of the second parser upon success.
5858
*/
5959
export const flatMap = <Output, NewOutput>(
6060
parser: Parser<Output>,

0 commit comments

Comments
 (0)