diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-09-05 03:59:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-05 03:59:51 +0200 |
| commit | a0f0a96e5d1b252a5d6e17e01e2467cb0eb012ee (patch) | |
| tree | c1101639998e4f54af6d24ec6d935b174fec66ca /src/libcore | |
| parent | 4dfbaba3bf0c61825637e26542ca5e0f21910f31 (diff) | |
| parent | b6f9523dc662ebc23f72356999ae263de9616a2d (diff) | |
| download | rust-a0f0a96e5d1b252a5d6e17e01e2467cb0eb012ee.tar.gz rust-a0f0a96e5d1b252a5d6e17e01e2467cb0eb012ee.zip | |
Rollup merge of #64142 - lzutao:fix-doc-cmp, r=jonas-schievink
Fix doc links in `std::cmp` module r? @jonas-schievink
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/cmp.rs | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/libcore/cmp.rs b/src/libcore/cmp.rs index 607427a85d6..7ec2295f97e 100644 --- a/src/libcore/cmp.rs +++ b/src/libcore/cmp.rs @@ -9,14 +9,22 @@ //! * [`Ord`] and [`PartialOrd`] are traits that allow you to define total and //! partial orderings between values, respectively. Implementing them overloads //! the `<`, `<=`, `>`, and `>=` operators. -//! * [`Ordering`][cmp::Ordering] is an enum returned by the -//! main functions of [`Ord`] and [`PartialOrd`], and describes an ordering. -//! * [`Reverse`][cmp::Reverse] is a struct that allows you to easily reverse -//! an ordering. -//! * [`max`][cmp::max] and [`min`][cmp::min] are functions that build off of -//! [`Ord`] and allow you to find the maximum or minimum of two values. +//! * [`Ordering`] is an enum returned by the main functions of [`Ord`] and +//! [`PartialOrd`], and describes an ordering. +//! * [`Reverse`] is a struct that allows you to easily reverse an ordering. +//! * [`max`] and [`min`] are functions that build off of [`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. +//! +//! [`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")] |
