File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2921,13 +2921,13 @@ automatically dereferenced to make the field access possible.
2921
2921
``` {.ebnf .gram}
2922
2922
array_expr : '[' "mut" ? vec_elems? ']' ;
2923
2923
2924
- array_elems : [expr [',' expr]*] | [expr ',' ".." expr] ;
2924
+ array_elems : [expr [',' expr]*] | [expr ';' expr] ;
2925
2925
```
2926
2926
2927
2927
An [ array] ( #array,-and-slice-types ) _ expression_ is written by enclosing zero
2928
2928
or more comma-separated expressions of uniform type in square brackets.
2929
2929
2930
- In the ` [expr ',' ".." expr] ` form, the expression after the ` ".." ` must be a
2930
+ In the ` [expr ';' expr] ` form, the expression after the ` ';' ` must be a
2931
2931
constant expression that can be evaluated at compile time, such as a
2932
2932
[ literal] ( #literals ) or a [ static item] ( #static-items ) .
2933
2933
You can’t perform that action at this time.
0 commit comments