about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-03-07 00:57:41 +0100
committerGitHub <noreply@github.com>2024-03-07 00:57:41 +0100
commitf1354ed772ade4ab915b867a256b05b28ae9656e (patch)
tree02a460cbf852f0e73c0aae599f311c870046f5f9
parent869529a13085da190f9870d544fd9018bda2e487 (diff)
parent6223e4c734d324d7935b72203a0fe604e4cd1ebc (diff)
downloadrust-f1354ed772ade4ab915b867a256b05b28ae9656e.tar.gz
rust-f1354ed772ade4ab915b867a256b05b28ae9656e.zip
Rollup merge of #122072 - KonradHoeffner:patch-1, r=cuviper
Refer to "slice" instead of "vector" in Ord and PartialOrd trait impl of slices

The trait implementation comments of Ord and PartialOrd for slice incorrectly mention "vectors" instead of "slices".
This PR fixes those two comments as requested in #122071.
-rw-r--r--library/core/src/slice/cmp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/slice/cmp.rs b/library/core/src/slice/cmp.rs
index e8b0010ba15..5bee4d55135 100644
--- a/library/core/src/slice/cmp.rs
+++ b/library/core/src/slice/cmp.rs
@@ -24,7 +24,7 @@ where
 #[stable(feature = "rust1", since = "1.0.0")]
 impl<T: Eq> Eq for [T] {}
 
-/// Implements comparison of vectors [lexicographically](Ord#lexicographical-comparison).
+/// Implements comparison of slices [lexicographically](Ord#lexicographical-comparison).
 #[stable(feature = "rust1", since = "1.0.0")]
 impl<T: Ord> Ord for [T] {
     fn cmp(&self, other: &[T]) -> Ordering {
@@ -32,7 +32,7 @@ impl<T: Ord> Ord for [T] {
     }
 }
 
-/// Implements comparison of vectors [lexicographically](Ord#lexicographical-comparison).
+/// Implements comparison of slices [lexicographically](Ord#lexicographical-comparison).
 #[stable(feature = "rust1", since = "1.0.0")]
 impl<T: PartialOrd> PartialOrd for [T] {
     fn partial_cmp(&self, other: &[T]) -> Option<Ordering> {