Skip to content

Commit 82499ba

Browse files
author
George Bateman
committed
Correct terminology in Clone
1 parent 0ac9e59 commit 82499ba

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

library/core/src/clone.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ mod uninit;
5252
/// original.
5353
///
5454
/// Differs from [`Copy`] in that [`Copy`] is implicit and an inexpensive bit-wise copy, while
55-
/// `Clone` is always explicit and may or may not be expensive. In order to enforce
56-
/// these characteristics, Rust does not allow you to reimplement [`Copy`], but you
57-
/// may reimplement `Clone` and run arbitrary code.
55+
/// `Clone` is always explicit and may or may not be expensive. [`Copy`] has no methods, so you
56+
/// cannot change its behavior, but when implementing `Clone`, the `clone` method you provide
57+
/// may run arbitrary code.
5858
///
59-
/// Since `Clone` is more general than [`Copy`], you can automatically make anything
60-
/// [`Copy`] be `Clone` as well.
59+
/// Since `Clone` is a supertrait of [`Copy`], any type that implements `Copy` must also implement
60+
/// `Clone`.
6161
///
6262
/// ## Derivable
6363
///

0 commit comments

Comments
 (0)