about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDenis Vasilik <contact@denisvasilik.com>2020-09-01 19:56:32 +0200
committerDenis Vasilik <contact@denisvasilik.com>2020-09-01 19:56:32 +0200
commit3510c568874eb1274805b25cfa5cc54aa1819030 (patch)
treef5f53d526b7438deb4d8e785b5757301b31bee31
parente7d074392e560517546725e7e3ba5b3fe8978ee8 (diff)
downloadrust-3510c568874eb1274805b25cfa5cc54aa1819030.tar.gz
rust-3510c568874eb1274805b25cfa5cc54aa1819030.zip
Improve readability
-rw-r--r--library/core/src/clone.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/library/core/src/clone.rs b/library/core/src/clone.rs
index a5d20045a9b..a953a3a4182 100644
--- a/library/core/src/clone.rs
+++ b/library/core/src/clone.rs
@@ -7,7 +7,9 @@
 //! contain owned boxes or implement [`Drop`]), so the compiler considers
 //! them cheap and safe to copy. For other types copies must be made
 //! explicitly, by convention implementing the [`Clone`] trait and calling
-//! the [`Clone::clone`] method.
+//! the [`clone`] method.
+//!
+//! [`clone`]: Clone::clone
 //!
 //! Basic usage example:
 //!
@@ -47,7 +49,9 @@
 /// ## Derivable
 ///
 /// This trait can be used with `#[derive]` if all fields are `Clone`. The `derive`d
-/// implementation of [`Clone::clone`] calls [`Clone::clone`] on each field.
+/// implementation of [`Clone`] calls [`clone`] on each field.
+///
+/// [`clone`]: Clone::clone
 ///
 /// For a generic struct, `#[derive]` implements `Clone` conditionally by adding bound `Clone` on
 /// generic parameters.