about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorTobias Bucher <tobiasbucher5991@gmail.com>2015-12-01 02:13:13 +0000
committerTobias Bucher <tobiasbucher5991@gmail.com>2015-12-01 02:13:35 +0000
commit53f026948a42439095e672a00101dfdbadfcf008 (patch)
treef3b02c7d0b1e49a77f60cccae8fbc9d850ee0312 /src/libstd
parenta2866e387eab59528466a040e815568e57b20850 (diff)
downloadrust-53f026948a42439095e672a00101dfdbadfcf008.tar.gz
rust-53f026948a42439095e672a00101dfdbadfcf008.zip
Arrays don't dereference but coerce to slices
Fixes #29993.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/primitive_docs.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libstd/primitive_docs.rs b/src/libstd/primitive_docs.rs
index aec8b6b1b22..391028d1f8e 100644
--- a/src/libstd/primitive_docs.rs
+++ b/src/libstd/primitive_docs.rs
@@ -214,8 +214,8 @@ mod prim_pointer { }
 
 #[doc(primitive = "array")]
 //
-/// A fixed-size array, denoted `[T; N]`, for the element type, `T`, and
-/// the non-negative compile time constant size, `N`.
+/// A fixed-size array, denoted `[T; N]`, for the element type, `T`, and the
+/// non-negative compile time constant size, `N`.
 ///
 /// Arrays values are created either with an explicit expression that lists
 /// each element: `[x, y, z]` or a repeat expression: `[x; N]`. The repeat
@@ -223,8 +223,8 @@ mod prim_pointer { }
 ///
 /// The type `[T; N]` is `Copy` if `T: Copy`.
 ///
-/// Arrays of sizes from 0 to 32 (inclusive) implement the following traits
-/// if the element type allows it:
+/// Arrays of sizes from 0 to 32 (inclusive) implement the following traits if
+/// the element type allows it:
 ///
 /// - `Clone` (only if `T: Copy`)
 /// - `Debug`
@@ -235,8 +235,8 @@ mod prim_pointer { }
 /// - `Borrow`, `BorrowMut`
 /// - `Default`
 ///
-/// Arrays dereference to [slices (`[T]`)][slice], so their methods can be called
-/// on arrays.
+/// Arrays coerce to [slices (`[T]`)][slice], so their methods can be called on
+/// arrays.
 ///
 /// [slice]: primitive.slice.html
 ///