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 27, 2024
1 parent 3876eaf commit 1c96b5d
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 1c96b5d

Please sign in to comment.