about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2017-01-10 10:23:21 -0500
committerSteve Klabnik <steve@steveklabnik.com>2017-01-25 13:57:34 -0500
commit2a3568f14bafa2bf62c50fd8589b48be6e31991d (patch)
tree5f68ad2bc1bbb317fd5d0818cfac74997353bea6 /src
parent1283c029557bcde106adde71f467fe133b3ffeff (diff)
downloadrust-2a3568f14bafa2bf62c50fd8589b48be6e31991d.tar.gz
rust-2a3568f14bafa2bf62c50fd8589b48be6e31991d.zip
Fix wording around sort guarantees
Fixes #38524
Diffstat (limited to 'src')
-rw-r--r--src/libcollections/slice.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libcollections/slice.rs b/src/libcollections/slice.rs
index e704f400d49..e4bc05c7ff0 100644
--- a/src/libcollections/slice.rs
+++ b/src/libcollections/slice.rs
@@ -1064,8 +1064,11 @@ impl<T> [T] {
 
     /// This is equivalent to `self.sort_by(|a, b| a.cmp(b))`.
     ///
-    /// This sort is stable and `O(n log n)` worst-case, but allocates
-    /// temporary storage half the size of `self`.
+    /// This sort is stable and `O(n log n)` worst-case. 
+    ///
+    /// # Current Implementation
+    /// 
+    /// The current implementation allocates temporary storage half the size of `self`.
     ///
     /// # Examples
     ///