granite-rust/library/core
Dylan DPC 51b86848ff
Rollup merge of #90312 - r00ster91:search, r=Dylan-DPC
Fix some confusing wording and improve slice-search-related docs

This adds more links between `contains` and `binary_search` because I do think they have some relevant connections. If your (big) slice happens to be sorted and you know it, surely you should be using `[3; 100].binary_search(&5).is_ok()` over `[3; 100].contains(&5)`?
This also fixes the confusing "searches this sorted X" wording which just sounds really weird because it doesn't know whether it's actually sorted. It should be but it may not be. The new wording should make it clearer that you will probably want to sort it and in the same sentence it also mentions the related function `contains`.
Similarly, this mentions `binary_search` on `contains`' docs.
This also fixes some other minor stuff and inconsistencies.
2022-04-26 01:21:20 +02:00
..
benches Make some usize-typed masks definition agnostic to the size of usize 2022-04-15 17:04:59 +02:00
primitive_docs Add primitive documentation to libcore 2021-09-12 02:23:08 +00:00
src Rollup merge of #90312 - r00ster91:search, r=Dylan-DPC 2022-04-26 01:21:20 +02:00
tests Auto merge of #92287 - JulianKnodt:slice_remainder, r=yaahc 2022-04-18 23:34:24 +00:00
Cargo.toml Build libcore as 2021 in a few more places 2022-02-06 15:41:01 -08:00