diff options
| author | bors <bors@rust-lang.org> | 2015-08-12 17:07:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-08-12 17:07:11 +0000 |
| commit | 8b5948d5bf08f27bf443356549a25b39d40c159d (patch) | |
| tree | f3d54534ff69927186d3b2a6e892544899b77716 /src/libsyntax/parse | |
| parent | 81c9ff24fe6d53eb51d9427302ec842da49b9edc (diff) | |
| parent | 6b09eb8e17d1952a930e1411da85703c2c534dde (diff) | |
| download | rust-8b5948d5bf08f27bf443356549a25b39d40c159d.tar.gz rust-8b5948d5bf08f27bf443356549a25b39d40c159d.zip | |
Auto merge of #27688 - alexcrichton:rollup, r=alexcrichton
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 4 |
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))); |
