Skip to content

Commit 86069e4

Browse files
committed
Auto merge of #29671 - ollie27:patch-1, r=bluss
2 parents d34daf3 + 4f6eb1e commit 86069e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libstd/primitive_docs.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,14 @@ mod prim_pointer { }
165165
/// Arrays of sizes from 0 to 32 (inclusive) implement the following traits
166166
/// if the element type allows it:
167167
///
168-
/// - `Clone`
168+
/// - `Clone` (only if `T: Copy`)
169169
/// - `Debug`
170170
/// - `IntoIterator` (implemented for `&[T; N]` and `&mut [T; N]`)
171171
/// - `PartialEq`, `PartialOrd`, `Ord`, `Eq`
172172
/// - `Hash`
173173
/// - `AsRef`, `AsMut`
174+
/// - `Borrow`, `BorrowMut`
175+
/// - `Default`
174176
///
175177
/// Arrays dereference to [slices (`[T]`)][slice], so their methods can be called
176178
/// on arrays.

0 commit comments

Comments
 (0)