File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 7
7
//! contain owned boxes or implement [`Drop`]), so the compiler considers
8
8
//! them cheap and safe to copy. For other types copies must be made
9
9
//! explicitly, by convention implementing the [`Clone`] trait and calling
10
- //! the [`Clone::clone`] method.
10
+ //! the [`clone`] method.
11
+ //!
12
+ //! [`clone`]: Clone::clone
11
13
//!
12
14
//! Basic usage example:
13
15
//!
47
49
/// ## Derivable
48
50
///
49
51
/// This trait can be used with `#[derive]` if all fields are `Clone`. The `derive`d
50
- /// implementation of [`Clone::clone`] calls [`Clone::clone`] on each field.
52
+ /// implementation of [`Clone`] calls [`clone`] on each field.
53
+ ///
54
+ /// [`clone`]: Clone::clone
51
55
///
52
56
/// For a generic struct, `#[derive]` implements `Clone` conditionally by adding bound `Clone` on
53
57
/// generic parameters.
You can’t perform that action at this time.
0 commit comments