Skip to content

Commit 3510c56

Browse files
committed
Improve readability
1 parent e7d0743 commit 3510c56

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

library/core/src/clone.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
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
//!
@@ -47,7 +49,9 @@
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.

0 commit comments

Comments
 (0)