Skip to content

Commit 7283436

Browse files
committed
Clarify flatMap's docblock
1 parent f7d528b commit 7283436

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)