syntax: fix use of "vector" for [x; n] literal and [x, y] patterns
This commit is contained in:
parent
1af31d4974
commit
29945d5db0
2 changed files with 3 additions and 3 deletions
|
|
@ -941,7 +941,7 @@ pub enum Expr_ {
|
|||
/// `Foo {x: 1, .. base}`, where `base` is the `Option<Expr>`.
|
||||
ExprStruct(Path, Vec<Field>, Option<P<Expr>>),
|
||||
|
||||
/// A vector literal constructed from one repeated element.
|
||||
/// An array literal constructed from one repeated element.
|
||||
///
|
||||
/// For example, `[1u8; 5]`. The first expression is the element
|
||||
/// to be repeated; the second is the number of times to repeat it.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue