about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCoca162 <coca16622@gmail.com>2023-02-27 15:16:39 +0000
committerCoca162 <coca16622@gmail.com>2023-02-27 15:16:39 +0000
commit22b65fc27594d5f95195ea098bfb0a60d21225d2 (patch)
tree602f2b1e754ce04288eabef7587292917d1e9601
parentdc9732620d21835176638ef7c443e04c708dcfdc (diff)
downloadrust-22b65fc27594d5f95195ea098bfb0a60d21225d2.tar.gz
rust-22b65fc27594d5f95195ea098bfb0a60d21225d2.zip
Clarify that Copy is a trait in array docs
-rw-r--r--library/core/src/primitive_docs.rs2
-rw-r--r--library/std/src/primitive_docs.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/primitive_docs.rs b/library/core/src/primitive_docs.rs
index f04963f06af..6f78811a186 100644
--- a/library/core/src/primitive_docs.rs
+++ b/library/core/src/primitive_docs.rs
@@ -589,7 +589,7 @@ mod prim_pointer {}
 /// * A list with each element, i.e., `[x, y, z]`.
 /// * A repeat expression `[expr; N]` where `N` is how many times to repeat `expr` in the array. `expr` must either be:
 ///
-///   * A value of type `Copy`
+///   * A value of a type implementing the [`Copy`] trait
 ///   * A `const` value
 ///
 /// Note that `[expr; 0]` is allowed, and produces an empty array.
diff --git a/library/std/src/primitive_docs.rs b/library/std/src/primitive_docs.rs
index f04963f06af..6f78811a186 100644
--- a/library/std/src/primitive_docs.rs
+++ b/library/std/src/primitive_docs.rs
@@ -589,7 +589,7 @@ mod prim_pointer {}
 /// * A list with each element, i.e., `[x, y, z]`.
 /// * A repeat expression `[expr; N]` where `N` is how many times to repeat `expr` in the array. `expr` must either be:
 ///
-///   * A value of type `Copy`
+///   * A value of a type implementing the [`Copy`] trait
 ///   * A `const` value
 ///
 /// Note that `[expr; 0]` is allowed, and produces an empty array.