Skip to content

Commit b6f9523

Browse files
committedSep 4, 2019
Fix doc links in std::cmp module
These links are rendered in `core::cmp` but not in `std::cmp`.
1 parent b9de4ef commit b6f9523

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed
 

‎src/libcore/cmp.rs

+14-6
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,22 @@
99
//! * [`Ord`] and [`PartialOrd`] are traits that allow you to define total and
1010
//! partial orderings between values, respectively. Implementing them overloads
1111
//! the `<`, `<=`, `>`, and `>=` operators.
12-
//! * [`Ordering`][cmp::Ordering] is an enum returned by the
13-
//! main functions of [`Ord`] and [`PartialOrd`], and describes an ordering.
14-
//! * [`Reverse`][cmp::Reverse] is a struct that allows you to easily reverse
15-
//! an ordering.
16-
//! * [`max`][cmp::max] and [`min`][cmp::min] are functions that build off of
17-
//! [`Ord`] and allow you to find the maximum or minimum of two values.
12+
//! * [`Ordering`] is an enum returned by the main functions of [`Ord`] and
13+
//! [`PartialOrd`], and describes an ordering.
14+
//! * [`Reverse`] is a struct that allows you to easily reverse an ordering.
15+
//! * [`max`] and [`min`] are functions that build off of [`Ord`] and allow you
16+
//! to find the maximum or minimum of two values.
1817
//!
1918
//! For more details, see the respective documentation of each item in the list.
19+
//!
20+
//! [`Eq`]: trait.Eq.html
21+
//! [`PartialEq`]: trait.PartialEq.html
22+
//! [`Ord`]: trait.Ord.html
23+
//! [`PartialOrd`]: trait.PartialOrd.html
24+
//! [`Ordering`]: enum.Ordering.html
25+
//! [`Reverse`]: struct.Reverse.html
26+
//! [`max`]: fn.max.html
27+
//! [`min`]: fn.min.html
2028
2129
#![stable(feature = "rust1", since = "1.0.0")]
2230

0 commit comments

Comments
 (0)
Please sign in to comment.