From 27b06f10dc01319c449d0f8c04218136431938c8 Mon Sep 17 00:00:00 2001 From: VillSnow Date: Mon, 22 Jun 2020 21:35:09 +0900 Subject: [PATCH] update: doc comment --- src/libcore/slice/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libcore/slice/mod.rs b/src/libcore/slice/mod.rs index 13e5ef9ec6f..a07690bc669 100644 --- a/src/libcore/slice/mod.rs +++ b/src/libcore/slice/mod.rs @@ -2668,7 +2668,9 @@ pub fn is_sorted_by_key(&self, f: F) -> bool /// such that all those that return true precede the index and /// such that all those that return false succeed the index. /// - /// 'self' must be partitioned. + /// The slice must be partitioned + /// so that all elements where the predicate returns true + /// precede the elements where the predicate returns false. /// /// # Examples ///