about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorOliver Middleton <olliemail27@gmail.com>2015-11-07 12:01:11 +0000
committerOliver Middleton <olliemail27@gmail.com>2015-11-07 12:01:11 +0000
commit4f6eb1e93a68c569c35e37de01e8d25645b67424 (patch)
tree496c6eb02f3f522d775bf8a4b39b2d2771496664 /src/libstd
parentd34daf38e8e207ffc0b09456940752491ae20581 (diff)
downloadrust-4f6eb1e93a68c569c35e37de01e8d25645b67424.tar.gz
rust-4f6eb1e93a68c569c35e37de01e8d25645b67424.zip
Update list of array implementations in src/libstd/primitive_docs.rs
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/primitive_docs.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstd/primitive_docs.rs b/src/libstd/primitive_docs.rs
index 7d62d477a0a..df12952fc32 100644
--- a/src/libstd/primitive_docs.rs
+++ b/src/libstd/primitive_docs.rs
@@ -165,12 +165,14 @@ mod prim_pointer { }
 /// Arrays of sizes from 0 to 32 (inclusive) implement the following traits
 /// if the element type allows it:
 ///
-/// - `Clone`
+/// - `Clone` (only if `T: Copy`)
 /// - `Debug`
 /// - `IntoIterator` (implemented for `&[T; N]` and `&mut [T; N]`)
 /// - `PartialEq`, `PartialOrd`, `Ord`, `Eq`
 /// - `Hash`
 /// - `AsRef`, `AsMut`
+/// - `Borrow`, `BorrowMut`
+/// - `Default`
 ///
 /// Arrays dereference to [slices (`[T]`)][slice], so their methods can be called
 /// on arrays.