diff options
| author | bors <bors@rust-lang.org> | 2015-07-11 07:40:27 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-07-11 07:40:27 +0000 |
| commit | 1b28ffa5216c845d1cef6b0cb3e5ac7db12025d0 (patch) | |
| tree | 9c77611c90018f5b88bb00e3e06d23dbd60a4413 /src/libstd/array.rs | |
| parent | f7f28c8b26af35fb495f60b43d0c6361c587045f (diff) | |
| parent | 25b14375b752ea88f91af37ec2b5c042cd10927b (diff) | |
| download | rust-1b28ffa5216c845d1cef6b0cb3e5ac7db12025d0.tar.gz rust-1b28ffa5216c845d1cef6b0cb3e5ac7db12025d0.zip | |
Auto merge of #26961 - Manishearth:rollup, r=Manishearth
- Successful merges: #26932, #26936, #26943, #26944 - Failed merges:
Diffstat (limited to 'src/libstd/array.rs')
| -rw-r--r-- | src/libstd/array.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/array.rs b/src/libstd/array.rs index e79e5d5a680..0dfcc72e379 100644 --- a/src/libstd/array.rs +++ b/src/libstd/array.rs @@ -9,7 +9,7 @@ // except according to those terms. //! A fixed-size array is denoted `[T; N]` for the element type `T` and -//! the compile time constant size `N`. The size should be zero or positive. +//! the compile time constant size `N`. The size must be zero or positive. //! //! Arrays values are created either with an explicit expression that lists //! each element: `[x, y, z]` or a repeat expression: `[x; N]`. The repeat @@ -32,7 +32,9 @@ //! //! [slice]: primitive.slice.html //! -//! ## Examples +//! Rust does not currently support generics over the size of an array type. +//! +//! # Examples //! //! ``` //! let mut array: [i32; 3] = [0; 3]; @@ -49,7 +51,5 @@ //! //! ``` //! -//! Rust does not currently support generics over the size of an array type. -//! #![doc(primitive = "array")] |
