about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2015-08-11 17:35:22 +0200
committerGeorg Brandl <georg@python.org>2015-08-11 17:41:06 +0200
commit29945d5db002cc5330b85e17eee2e462ba34a986 (patch)
treeaffb1dcb1d63ce54f71d1ae311df3807f28b7299 /src/libsyntax/parse
parent1af31d4974e33027a68126fa5a5a3c2c6491824f (diff)
downloadrust-29945d5db002cc5330b85e17eee2e462ba34a986.tar.gz
rust-29945d5db002cc5330b85e17eee2e462ba34a986.zip
syntax: fix use of "vector" for [x; n] literal and [x, y] patterns
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 77042547742..e6242690ac0 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -2075,7 +2075,7 @@ impl<'a> Parser<'a> {
                     // Nonempty vector.
                     let first_expr = try!(self.parse_expr_nopanic());
                     if self.check(&token::Semi) {
-                        // Repeating vector syntax: [ 0; 512 ]
+                        // Repeating array syntax: [ 0; 512 ]
                         try!(self.bump());
                         let count = try!(self.parse_expr_nopanic());
                         try!(self.expect(&token::CloseDelim(token::Bracket)));
@@ -3260,7 +3260,7 @@ impl<'a> Parser<'a> {
             pat = PatTup(fields);
           }
           token::OpenDelim(token::Bracket) => {
-            // Parse [pat,pat,...] as vector pattern
+            // Parse [pat,pat,...] as slice pattern
             try!(self.bump());
             let (before, slice, after) = try!(self.parse_pat_vec_elements());
             try!(self.expect(&token::CloseDelim(token::Bracket)));