diff options
| author | Rustin-Liu <rustin.liu@gmail.com> | 2020-10-25 17:46:45 +0800 |
|---|---|---|
| committer | Rustin-Liu <rustin.liu@gmail.com> | 2020-10-26 22:39:43 +0800 |
| commit | 42844ed2cf4ca0ff2a9271e0aaa8e5910c5f4ccd (patch) | |
| tree | e37b3557e4bc43b1791dcb9bfd1b364fb887454a /library/alloc/src | |
| parent | b9a94c919b8cb09c186ff253360df91f223f6ef3 (diff) | |
| download | rust-42844ed2cf4ca0ff2a9271e0aaa8e5910c5f4ccd.tar.gz rust-42844ed2cf4ca0ff2a9271e0aaa8e5910c5f4ccd.zip | |
Add lexicographical comparison doc
Add links Fix typo Use `sequence` Fix typo Fix broken link Fix broken link Fix broken link Fix broken links Fix broken links
Diffstat (limited to 'library/alloc/src')
| -rw-r--r-- | library/alloc/src/vec.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/src/vec.rs b/library/alloc/src/vec.rs index 5b3604db563..202e3a83638 100644 --- a/library/alloc/src/vec.rs +++ b/library/alloc/src/vec.rs @@ -2566,7 +2566,7 @@ __impl_slice_eq1! { [const N: usize] Vec<A>, &[B; N], #[stable(feature = "rust1" //__impl_slice_eq1! { [const N: usize] Cow<'a, [A]>, &[B; N], } //__impl_slice_eq1! { [const N: usize] Cow<'a, [A]>, &mut [B; N], } -/// Implements comparison of vectors, lexicographically. +/// Implements comparison of vectors, [lexicographically](core::cmp::Ord#lexicographical-comparison). #[stable(feature = "rust1", since = "1.0.0")] impl<T: PartialOrd> PartialOrd for Vec<T> { #[inline] @@ -2578,7 +2578,7 @@ impl<T: PartialOrd> PartialOrd for Vec<T> { #[stable(feature = "rust1", since = "1.0.0")] impl<T: Eq> Eq for Vec<T> {} -/// Implements ordering of vectors, lexicographically. +/// Implements ordering of vectors, [lexicographically](core::cmp::Ord#lexicographical-comparison). #[stable(feature = "rust1", since = "1.0.0")] impl<T: Ord> Ord for Vec<T> { #[inline] |
