From 4f6eb1e93a68c569c35e37de01e8d25645b67424 Mon Sep 17 00:00:00 2001 From: Oliver Middleton Date: Sat, 7 Nov 2015 12:01:11 +0000 Subject: [PATCH] Update list of array implementations in src/libstd/primitive_docs.rs --- src/libstd/primitive_docs.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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.