File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -941,7 +941,7 @@ pub enum Expr_ {
941
941
/// `Foo {x: 1, .. base}`, where `base` is the `Option<Expr>`.
942
942
ExprStruct ( Path , Vec < Field > , Option < P < Expr > > ) ,
943
943
944
- /// A vector literal constructed from one repeated element.
944
+ /// An array literal constructed from one repeated element.
945
945
///
946
946
/// For example, `[1u8; 5]`. The first expression is the element
947
947
/// to be repeated; the second is the number of times to repeat it.
Original file line number Diff line number Diff line change @@ -2075,7 +2075,7 @@ impl<'a> Parser<'a> {
2075
2075
// Nonempty vector.
2076
2076
let first_expr = try!( self . parse_expr_nopanic ( ) ) ;
2077
2077
if self . check ( & token:: Semi ) {
2078
- // Repeating vector syntax: [ 0; 512 ]
2078
+ // Repeating array syntax: [ 0; 512 ]
2079
2079
try!( self . bump ( ) ) ;
2080
2080
let count = try!( self . parse_expr_nopanic ( ) ) ;
2081
2081
try!( self . expect ( & token:: CloseDelim ( token:: Bracket ) ) ) ;
@@ -3260,7 +3260,7 @@ impl<'a> Parser<'a> {
3260
3260
pat = PatTup ( fields) ;
3261
3261
}
3262
3262
token:: OpenDelim ( token:: Bracket ) => {
3263
- // Parse [pat,pat,...] as vector pattern
3263
+ // Parse [pat,pat,...] as slice pattern
3264
3264
try!( self . bump ( ) ) ;
3265
3265
let ( before, slice, after) = try!( self . parse_pat_vec_elements ( ) ) ;
3266
3266
try!( self . expect ( & token:: CloseDelim ( token:: Bracket ) ) ) ;
You can’t perform that action at this time.
0 commit comments