about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorAlan Cutter <alancutter@chromium.org>2015-03-01 15:37:40 +1100
committerAlan Cutter <alancutter@chromium.org>2015-03-01 15:37:40 +1100
commit9b873faef51a2178f48178d1003f291dac142924 (patch)
tree3bac0f46dd5d144b2bc737cf662789faf3f821dc /src/doc
parent2b27dfd30ac5a95608d49e3425a3ff40f8da7dee (diff)
downloadrust-9b873faef51a2178f48178d1003f291dac142924.tar.gz
rust-9b873faef51a2178f48178d1003f291dac142924.zip
Fix missed doc grammar rule rename from vec_elems to array_elems
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/grammar.md2
-rw-r--r--src/doc/reference.md2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/grammar.md b/src/doc/grammar.md
index d7a29ea5309..68ca1cb7217 100644
--- a/src/doc/grammar.md
+++ b/src/doc/grammar.md
@@ -514,7 +514,7 @@ field_expr : expr '.' ident ;
 ### Array expressions
 
 ```antlr
-array_expr : '[' "mut" ? vec_elems? ']' ;
+array_expr : '[' "mut" ? array_elems? ']' ;
 
 array_elems : [expr [',' expr]*] | [expr ',' ".." expr] ;
 ```
diff --git a/src/doc/reference.md b/src/doc/reference.md
index 2f047d2c173..a24db2f247f 100644
--- a/src/doc/reference.md
+++ b/src/doc/reference.md
@@ -2821,7 +2821,7 @@ automatically dereferenced to make the field access possible.
 ### Array expressions
 
 ```{.ebnf .gram}
-array_expr : '[' "mut" ? vec_elems? ']' ;
+array_expr : '[' "mut" ? array_elems? ']' ;
 
 array_elems : [expr [',' expr]*] | [expr ';' expr] ;
 ```