diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-07-01 14:32:47 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-07-02 10:46:44 +1000 |
| commit | 36c30a968b60a2926a0f600feb78eaba618d8d9a (patch) | |
| tree | 4b025d31af402fc6cccb51e2917278b6ea604881 /compiler/rustc_parse/src/parser | |
| parent | 7416c20cfd781de5608494d67975be94e8689c24 (diff) | |
| download | rust-36c30a968b60a2926a0f600feb78eaba618d8d9a.tar.gz rust-36c30a968b60a2926a0f600feb78eaba618d8d9a.zip | |
Fix comment.
Both the indenting, and the missing `)`.
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -rw-r--r-- | compiler/rustc_parse/src/parser/attr_wrapper.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_parse/src/parser/attr_wrapper.rs b/compiler/rustc_parse/src/parser/attr_wrapper.rs index 4b1531c5ff3..a5aaa9f0522 100644 --- a/compiler/rustc_parse/src/parser/attr_wrapper.rs +++ b/compiler/rustc_parse/src/parser/attr_wrapper.rs @@ -233,9 +233,9 @@ impl<'a> Parser<'a> { // 1. Our target doesn't support tokens at all (e.g we're parsing an `NtIdent`) // so there's nothing for us to do. // 2. Our target already has tokens set (e.g. we've parsed something - // like `#[my_attr] $item`. The actual parsing code takes care of prepending - // any attributes to the nonterminal, so we don't need to modify the - // already captured tokens. + // like `#[my_attr] $item`). The actual parsing code takes care of + // prepending any attributes to the nonterminal, so we don't need to + // modify the already captured tokens. // Note that this check is independent of `force_collect`- if we already // have tokens, or can't even store them, then there's never a need to // force collection of new tokens. |
