parser: improve parse_pat_with_or docs.

This commit is contained in:
Mazdak Farrokhzad 2019-08-18 18:15:17 +02:00
parent 7b59b4f14d
commit dc5bbaf7b2

View File

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