syntax: fix use of "vector" for [x; n] literal and [x, y] patterns

This commit is contained in:
Georg Brandl 2015-08-11 17:35:22 +02:00
parent 1af31d4974
commit 29945d5db0
2 changed files with 3 additions and 3 deletions

View file

@ -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.