about summary refs log tree commit diff
path: root/library
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-08-11 01:56:47 +0200
committerGitHub <noreply@github.com>2020-08-11 01:56:47 +0200
commit0a738d41b11fb53c699b5c061372474a67a2b307 (patch)
treeab72d3c11f7e1a6556ce789906bb97d0e301f4ed /library
parentd00c70363f8e1d9bf44b803b5d6d9747747252b5 (diff)
parenteea85814e18f7558bc28c6bdc804d6e31d3c456e (diff)
Rollup merge of #75379 - denisvasilik:intra-docs-links-core-cmp, r=Dylan-DPC
Use intra-doc links in /library/core/src/cmp.rs

Helps with #75080.

@rustbot modify labels: T-doc, A-intra-doc-links, T-rustdoc

Known issues:

* Links from `core` to `std` (#74481):
    * [`Vec::sort_by_key`]
Diffstat (limited to 'library')
-rw-r--r--library/core/src/cmp.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/library/core/src/cmp.rs b/library/core/src/cmp.rs
index 79085740119..e775ded60f5 100644
--- a/library/core/src/cmp.rs
+++ b/library/core/src/cmp.rs
@@ -17,14 +17,8 @@
 //!
 //! For more details, see the respective documentation of each item in the list.
 //!
-//! [`Eq`]: trait.Eq.html
-//! [`PartialEq`]: trait.PartialEq.html
-//! [`Ord`]: trait.Ord.html
-//! [`PartialOrd`]: trait.PartialOrd.html
-//! [`Ordering`]: enum.Ordering.html
-//! [`Reverse`]: struct.Reverse.html
-//! [`max`]: fn.max.html
-//! [`min`]: fn.min.html
+//! [`max`]: Ord::max
+//! [`min`]: Ord::min
 
 #![stable(feature = "rust1", since = "1.0.0")]