File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 77//! contain owned boxes or implement [`Drop`]), so the compiler considers
88//! them cheap and safe to copy. For other types copies must be made
99//! explicitly, by convention implementing the [`Clone`] trait and calling
10- //! the [`Clone::clone`] method.
10+ //! the [`clone`] method.
11+ //!
12+ //! [`clone`]: Clone::clone
1113//!
1214//! Basic usage example:
1315//!
4749/// ## Derivable
4850///
4951/// 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
5155///
5256/// For a generic struct, `#[derive]` implements `Clone` conditionally by adding bound `Clone` on
5357/// generic parameters.
You can’t perform that action at this time.
0 commit comments