diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs index ec28cdd1ba0d9..edc4e038ee2eb 100644 --- a/library/core/src/slice/mod.rs +++ b/library/core/src/slice/mod.rs @@ -2136,6 +2136,7 @@ impl [T] { /// assert_eq!(s, [0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 42, 55]); /// ``` #[stable(feature = "rust1", since = "1.0.0")] + #[doc(alias("bsearch", "bisect"))] pub fn binary_search(&self, x: &T) -> Result where T: Ord, @@ -2295,6 +2296,7 @@ impl [T] { /// [pdqsort]: https://github.com/orlp/pdqsort #[stable(feature = "sort_unstable", since = "1.20.0")] #[inline] + #[doc(alias("qsort", "quicksort"))] pub fn sort_unstable(&mut self) where T: Ord,