about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2018-08-07 00:03:26 +0100
committervarkor <github@varkor.com>2018-08-11 21:08:24 +0100
commita478cd41e3f203ec531bfce7efb8fc602aad5c7d (patch)
tree9d281c05e049256d4ee313eac0ff25fc96afacc0 /src/libsyntax
parent235905c080bf953a522ff86d4fec6134ac4fb371 (diff)
downloadrust-a478cd41e3f203ec531bfce7efb8fc602aad5c7d.tar.gz
rust-a478cd41e3f203ec531bfce7efb8fc602aad5c7d.zip
Improve diagnostics
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 57eb1f52fb7..a1dbe93fdfe 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -1744,7 +1744,7 @@ impl<'a> Parser<'a> {
     fn parse_arg_general(&mut self, require_name: bool) -> PResult<'a, Arg> {
         maybe_whole!(self, NtArg, |x| x);
 
-        // If we see `ident :`, then we know that the argument is just of the
+        // If we see `ident :`, then we know that the argument is not just of the
         // form `type`, which means we won't need to recover from parsing a
         // pattern and so we don't need to store a parser snapshot.
         let parser_snapshot_before_pat = if