Skip to content

Commit

Permalink
clarify what term can be
Browse files Browse the repository at this point in the history
  • Loading branch information
Orion Gonzalez committed Aug 28, 2024
1 parent 44fa9ab commit e08fb5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler/rustc_parse/src/parser/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ impl<'a> Parser<'a> {
}

/// Parses the contents of a module (inner attributes followed by module items).
/// We exit once we hit `term`
/// We exit once we hit `term` which can be either
/// - EOF (for files)
/// - `}` for mod items
pub fn parse_mod(
&mut self,
term: &TokenKind,
Expand Down

0 comments on commit e08fb5c

Please sign in to comment.