Skip to content

Commit 22b65fc

Browse files
committed
Clarify that Copy is a trait in array docs
1 parent dc97326 commit 22b65fc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/core/src/primitive_docs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ mod prim_pointer {}
589589
/// * A list with each element, i.e., `[x, y, z]`.
590590
/// * A repeat expression `[expr; N]` where `N` is how many times to repeat `expr` in the array. `expr` must either be:
591591
///
592-
/// * A value of type `Copy`
592+
/// * A value of a type implementing the [`Copy`] trait
593593
/// * A `const` value
594594
///
595595
/// Note that `[expr; 0]` is allowed, and produces an empty array.

library/std/src/primitive_docs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ mod prim_pointer {}
589589
/// * A list with each element, i.e., `[x, y, z]`.
590590
/// * A repeat expression `[expr; N]` where `N` is how many times to repeat `expr` in the array. `expr` must either be:
591591
///
592-
/// * A value of type `Copy`
592+
/// * A value of a type implementing the [`Copy`] trait
593593
/// * A `const` value
594594
///
595595
/// Note that `[expr; 0]` is allowed, and produces an empty array.

0 commit comments

Comments
 (0)