From 6223e4c734d324d7935b72203a0fe604e4cd1ebc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konrad=20H=C3=B6ffner?= Date: Wed, 6 Mar 2024 10:13:05 +0100 Subject: [PATCH] Refer to "slice" instead of "vector" in Ord and PartialOrd trait impl of slice --- library/core/src/slice/cmp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/core/src/slice/cmp.rs b/library/core/src/slice/cmp.rs index e8b0010ba1574..5bee4d551352e 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 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 Ord for [T] { fn cmp(&self, other: &[T]) -> Ordering { @@ -32,7 +32,7 @@ impl 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 PartialOrd for [T] { fn partial_cmp(&self, other: &[T]) -> Option {