parser: improve parse_pat_with_or docs.
This commit is contained in:
parent
7b59b4f14d
commit
dc5bbaf7b2
1 changed files with 2 additions and 1 deletions
|
|
@ -91,7 +91,8 @@ impl<'a> Parser<'a> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
/// Parses a pattern, that may be a or-pattern (e.g. `Some(Foo | Bar)`).
|
||||
/// Parses a pattern, that may be a or-pattern (e.g. `Foo | Bar` in `Some(Foo | Bar)`).
|
||||
/// Corresponds to `pat<allow_top_alt>` in RFC 2535.
|
||||
fn parse_pat_with_or(
|
||||
&mut self,
|
||||
expected: Expected,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue