mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Clarify doc for indented_seq
Previously said that `indented_seq` was similar to `and`, but it's more like `skip_first`. `and` returns a tuple of both parsers' outputs, but `indented_seq` only returns the output of the second parser, just like `skip_first`.
This commit is contained in:
parent
dd2c786eb9
commit
f001cf98e6
1 changed files with 3 additions and 3 deletions
|
@ -1684,9 +1684,9 @@ macro_rules! record {
|
|||
};
|
||||
}
|
||||
|
||||
/// Similar to [`and`], but we modify the `min_indent` of the second parser
|
||||
/// (`parser`) to be 1 greater than the `line_indent()` at the start of the
|
||||
/// first parser (`before`).
|
||||
/// Similar to [`skip_first`], but we modify the `min_indent` of the second
|
||||
/// parser (`parser`) to be 1 greater than the `line_indent()` at the start of
|
||||
/// the first parser (`before`).
|
||||
pub fn indented_seq<'a, O, E: 'a>(
|
||||
before: impl Parser<'a, (), E>,
|
||||
parser: impl Parser<'a, O, E>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue