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 @@ fn ne(&self, other: &[U]) -> bool { #[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 @@ fn cmp(&self, other: &[T]) -> Ordering { } } -/// 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 {