File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 9
9
// except according to those terms.
10
10
11
11
//! 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.
13
13
//!
14
14
//! Arrays values are created either with an explicit expression that lists
15
15
//! each element: `[x, y, z]` or a repeat expression: `[x; N]`. The repeat
32
32
//!
33
33
//! [slice]: primitive.slice.html
34
34
//!
35
- //! ## Examples
35
+ //! Rust does not currently support generics over the size of an array type.
36
+ //!
37
+ //! # Examples
36
38
//!
37
39
//! ```
38
40
//! let mut array: [i32; 3] = [0; 3];
49
51
//!
50
52
//! ```
51
53
//!
52
- //! Rust does not currently support generics over the size of an array type.
53
- //!
54
54
55
55
#![ doc( primitive = "array" ) ]
You can’t perform that action at this time.
0 commit comments