Rollup merge of #64142 - lzutao:fix-doc-cmp, r=jonas-schievink

Fix doc links in `std::cmp` module

r? @jonas-schievink
This commit is contained in:
Mazdak Farrokhzad 2019-09-05 03:59:51 +02:00 committed by GitHub
commit a0f0a96e5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,14 +9,22 @@
//! * [`Ord`] and [`PartialOrd`] are traits that allow you to define total and //! * [`Ord`] and [`PartialOrd`] are traits that allow you to define total and
//! partial orderings between values, respectively. Implementing them overloads //! partial orderings between values, respectively. Implementing them overloads
//! the `<`, `<=`, `>`, and `>=` operators. //! the `<`, `<=`, `>`, and `>=` operators.
//! * [`Ordering`][cmp::Ordering] is an enum returned by the //! * [`Ordering`] is an enum returned by the main functions of [`Ord`] and
//! main functions of [`Ord`] and [`PartialOrd`], and describes an ordering. //! [`PartialOrd`], and describes an ordering.
//! * [`Reverse`][cmp::Reverse] is a struct that allows you to easily reverse //! * [`Reverse`] is a struct that allows you to easily reverse an ordering.
//! an ordering. //! * [`max`] and [`min`] are functions that build off of [`Ord`] and allow you
//! * [`max`][cmp::max] and [`min`][cmp::min] are functions that build off of //! to find the maximum or minimum of two values.
//! [`Ord`] and allow you to find the maximum or minimum of two values.
//! //!
//! For more details, see the respective documentation of each item in the list. //! 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
#![stable(feature = "rust1", since = "1.0.0")] #![stable(feature = "rust1", since = "1.0.0")]