Closed
Description
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?
Activity
LunaBorowska commentedon Jan 30, 2021
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 writerange
instead ofpredecessor
here.Replace predecessor with range in collections documentation
Rollup merge of rust-lang#81550 - xfix:replace-mention-of-predecessor…