diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-07-11 18:40:13 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-07-11 18:40:13 +0530 |
| commit | ba6c808feb74a57c4ec649d77e376d6df2e8841e (patch) | |
| tree | b46b0854b98923bcda892435a4c20776c32167e1 /src/libstd | |
| parent | bb73c7a38d629261bde49dfe272c503ce7c2a43e (diff) | |
| parent | da03fc68acc89c9ef949e2253c8c0f5d38340bdd (diff) | |
| download | rust-ba6c808feb74a57c4ec649d77e376d6df2e8841e.tar.gz rust-ba6c808feb74a57c4ec649d77e376d6df2e8841e.zip | |
Rollup merge of #26936 - bluss:doc-array, r=steveklabnik
Small tweaks for the documentation of the primitive type array Follow up to PR #26923, fix a few small details.
Diffstat (limited to 'src/libstd')
| -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")] |
