about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-04-20 00:16:45 +0000
committerbors <bors@rust-lang.org>2021-04-20 00:16:45 +0000
commite888a57da83fca78d6e64af0a347d06d9161affe (patch)
tree856acce58191c92f9690379fdbf7731f0b2316ba /compiler/rustc_parse/src
parent9d9c2c92b834c430f102ea96f65119e37320776e (diff)
parentf43ee8ebf696eec5a8a844629e4f7e910f9f0afd (diff)
downloadrust-e888a57da83fca78d6e64af0a347d06d9161affe.tar.gz
rust-e888a57da83fca78d6e64af0a347d06d9161affe.zip
Auto merge of #84334 - klensy:typo-compiler, r=jyn514
fix few typos in comments
Diffstat (limited to 'compiler/rustc_parse/src')
-rw-r--r--compiler/rustc_parse/src/parser/item.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/item.rs b/compiler/rustc_parse/src/parser/item.rs
index 2b7b58459c0..299b9a959c5 100644
--- a/compiler/rustc_parse/src/parser/item.rs
+++ b/compiler/rustc_parse/src/parser/item.rs
@@ -1448,7 +1448,7 @@ impl<'a> Parser<'a> {
         Ok((ident, ItemKind::MacroDef(ast::MacroDef { body, macro_rules: false })))
     }
 
-    /// Is this unambiguously the start of a `macro_rules! foo` item defnition?
+    /// Is this unambiguously the start of a `macro_rules! foo` item definition?
     fn is_macro_rules_item(&mut self) -> bool {
         self.check_keyword(kw::MacroRules)
             && self.look_ahead(1, |t| *t == token::Not)