mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-01 17:42:47 +00:00
Updated to reflect alpha-rename of constant/static items section.
This commit is contained in:
parent
7b6e90630e
commit
e1dccf9a73
@ -1672,10 +1672,8 @@ A [_vector_](#vector-types) _expression_ is written by enclosing zero or
|
||||
more comma-separated expressions of uniform type in square brackets.
|
||||
|
||||
In the `[expr ',' ".." expr]` form, the expression after the `".."`
|
||||
must be an expression form that can be evaluated at compile time, such
|
||||
as a [literal](#literals) or a [constant](#constants).
|
||||
|
||||
<!--- TODO: elaborate the actual subgrammar for constant expressions -->
|
||||
must be a constant expression that can be evaluated at compile time, such
|
||||
as a [literal](#literals) or a [static item](#static-items).
|
||||
|
||||
~~~~
|
||||
[1, 2, 3, 4];
|
||||
|
Loading…
Reference in New Issue
Block a user