You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
std::collections provides a complexity for BTreeMap::predecessor but the function is not available #81548
I was just through https://doc.rust-lang.org/std/collections/#maps and noticed that it gives a complexity for the predecessor operation for BTreeMap, but that operation seems not to be available. I checked the map itself and its iterator. Is this a documentation bug or am I missing something?
This looks a lot like a cursor method, but cursor API for BTreeMap is long gone if it even existed at any point. I think we could write range instead of predecessor here.
Activity
sugar700 commentedon Jan 30, 2021
This looks a lot like a cursor method, but cursor API for
BTreeMapis long gone if it even existed at any point. I think we could writerangeinstead ofpredecessorhere.Replace predecessor with range in collections documentation
Rollup merge of rust-lang#81550 - xfix:replace-mention-of-predecessor…