File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 99// except according to those terms.
1010
1111//! A fixed-size array is denoted `[T; N]` for the element type `T` and
12- //! the compile time constant size `N`. The size should be zero or positive.
12+ //! the compile time constant size `N`. The size must be zero or positive.
1313//!
1414//! Arrays values are created either with an explicit expression that lists
1515//! each element: `[x, y, z]` or a repeat expression: `[x; N]`. The repeat
3232//!
3333//! [slice]: primitive.slice.html
3434//!
35- //! ## Examples
35+ //! Rust does not currently support generics over the size of an array type.
36+ //!
37+ //! # Examples
3638//!
3739//! ```
3840//! let mut array: [i32; 3] = [0; 3];
4951//!
5052//! ```
5153//!
52- //! Rust does not currently support generics over the size of an array type.
53- //!
5454
5555#![ doc( primitive = "array" ) ]
You can’t perform that action at this time.
0 commit comments