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:
Jackson Wambolt 2024-04-16 18:08:51 -05:00
parent dd2c786eb9
commit f001cf98e6
No known key found for this signature in database
GPG key ID: 76F29A42FEE8811C

View file

@ -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>,