about summary refs log tree commit diff
path: root/src/librustc_parse/parser/diagnostics.rs
diff options
context:
space:
mode:
authorBrian Wignall <brianwignall@gmail.com>2019-11-26 22:19:54 -0500
committerBrian Wignall <brianwignall@gmail.com>2019-11-26 22:19:54 -0500
commit16fabd8efd416a8b957e369b8be2470e1271af9e (patch)
tree56aa5e9a690b55f0d28dd0556d918ddd23475bbc /src/librustc_parse/parser/diagnostics.rs
parenta7d791b4503a86c1b16b4393ba7998ef8b561a27 (diff)
downloadrust-16fabd8efd416a8b957e369b8be2470e1271af9e.tar.gz
rust-16fabd8efd416a8b957e369b8be2470e1271af9e.zip
Fix spelling typos
Diffstat (limited to 'src/librustc_parse/parser/diagnostics.rs')
-rw-r--r--src/librustc_parse/parser/diagnostics.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_parse/parser/diagnostics.rs b/src/librustc_parse/parser/diagnostics.rs
index fc334a558f5..da8bf89ebf3 100644
--- a/src/librustc_parse/parser/diagnostics.rs
+++ b/src/librustc_parse/parser/diagnostics.rs
@@ -1515,11 +1515,11 @@ impl<'a> Parser<'a> {
         }
     }
 
-    /// Replace duplicated recovered parameters with `_` pattern to avoid unecessary errors.
+    /// Replace duplicated recovered parameters with `_` pattern to avoid unnecessary errors.
     ///
     /// This is necessary because at this point we don't know whether we parsed a function with
     /// anonymous parameters or a function with names but no types. In order to minimize
-    /// unecessary errors, we assume the parameters are in the shape of `fn foo(a, b, c)` where
+    /// unnecessary errors, we assume the parameters are in the shape of `fn foo(a, b, c)` where
     /// the parameters are *names* (so we don't emit errors about not being able to find `b` in
     /// the local scope), but if we find the same name multiple times, like in `fn foo(i8, i8)`,
     /// we deduplicate them to not complain about duplicated parameter names.