@@ -2100,9 +2100,11 @@ impl<T> [T] {
2100
2100
///
2101
2101
/// If the value is found then [`Result::Ok`] is returned, containing the
2102
2102
/// index of the matching element. If there are multiple matches, then any
2103
- /// one of the matches could be returned. If the value is not found then
2104
- /// [`Result::Err`] is returned, containing the index where a matching
2105
- /// element could be inserted while maintaining sorted order.
2103
+ /// one of the matches could be returned. The index is chosen
2104
+ /// deterministically, but is subject to change in future versions of Rust.
2105
+ /// If the value is not found then [`Result::Err`] is returned, containing
2106
+ /// the index where a matching element could be inserted while maintaining
2107
+ /// sorted order.
2106
2108
///
2107
2109
/// See also [`binary_search_by`], [`binary_search_by_key`], and [`partition_point`].
2108
2110
///
@@ -2153,9 +2155,11 @@ impl<T> [T] {
2153
2155
///
2154
2156
/// If the value is found then [`Result::Ok`] is returned, containing the
2155
2157
/// index of the matching element. If there are multiple matches, then any
2156
- /// one of the matches could be returned. If the value is not found then
2157
- /// [`Result::Err`] is returned, containing the index where a matching
2158
- /// element could be inserted while maintaining sorted order.
2158
+ /// one of the matches could be returned. The index is chosen
2159
+ /// deterministically, but is subject to change in future versions of Rust.
2160
+ /// If the value is not found then [`Result::Err`] is returned, containing
2161
+ /// the index where a matching element could be inserted while maintaining
2162
+ /// sorted order.
2159
2163
///
2160
2164
/// See also [`binary_search`], [`binary_search_by_key`], and [`partition_point`].
2161
2165
///
@@ -2224,9 +2228,11 @@ impl<T> [T] {
2224
2228
///
2225
2229
/// If the value is found then [`Result::Ok`] is returned, containing the
2226
2230
/// index of the matching element. If there are multiple matches, then any
2227
- /// one of the matches could be returned. If the value is not found then
2228
- /// [`Result::Err`] is returned, containing the index where a matching
2229
- /// element could be inserted while maintaining sorted order.
2231
+ /// one of the matches could be returned. The index is chosen
2232
+ /// deterministically, but is subject to change in future versions of Rust.
2233
+ /// If the value is not found then [`Result::Err`] is returned, containing
2234
+ /// the index where a matching element could be inserted while maintaining
2235
+ /// sorted order.
2230
2236
///
2231
2237
/// See also [`binary_search`], [`binary_search_by`], and [`partition_point`].
2232
2238
///
0 commit comments