Skip to content

Commit dc5bbaf

Browse files
committed
parser: improve parse_pat_with_or docs.
1 parent 7b59b4f commit dc5bbaf

File tree

1 file changed

+2
-1
lines changed
  • src/libsyntax/parse/parser

1 file changed

+2
-1
lines changed

src/libsyntax/parse/parser/pat.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ impl<'a> Parser<'a> {
9191
Ok(())
9292
}
9393

94-
/// Parses a pattern, that may be a or-pattern (e.g. `Some(Foo | Bar)`).
94+
/// Parses a pattern, that may be a or-pattern (e.g. `Foo | Bar` in `Some(Foo | Bar)`).
95+
/// Corresponds to `pat<allow_top_alt>` in RFC 2535.
9596
fn parse_pat_with_or(
9697
&mut self,
9798
expected: Expected,

0 commit comments

Comments
 (0)