about summary refs log tree commit diff
path: root/src/libsyntax/ast.rs
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/ast.rs
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/ast.rs')
-rw-r--r--src/libsyntax/ast.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index 307403fda9a..bcc90dc47d9 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -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.