about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKonrad Borowski <konrad@borowski.pw>2021-01-30 14:24:00 +0100
committerKonrad Borowski <konrad@borowski.pw>2021-01-30 14:24:06 +0100
commit56c27360b1f1eb56a12d00586f716aba4b414848 (patch)
treec181bf25ebea8edb19b0776b87b98967cf0b956e
parentebaea9e850648dfeaeec353fd66c155c80de5ded (diff)
downloadrust-56c27360b1f1eb56a12d00586f716aba4b414848.tar.gz
rust-56c27360b1f1eb56a12d00586f716aba4b414848.zip
Replace predecessor with range in collections documentation
Fixes #81548.
-rw-r--r--library/std/src/collections/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/std/src/collections/mod.rs b/library/std/src/collections/mod.rs
index a1aab767eb2..80a13d52a2a 100644
--- a/library/std/src/collections/mod.rs
+++ b/library/std/src/collections/mod.rs
@@ -110,10 +110,10 @@
 //!
 //! For Sets, all operations have the cost of the equivalent Map operation.
 //!
-//! |              | get       | insert    | remove    | predecessor | append |
-//! |--------------|-----------|-----------|-----------|-------------|--------|
-//! | [`HashMap`]  | O(1)~     | O(1)~*    | O(1)~     | N/A         | N/A    |
-//! | [`BTreeMap`] | O(log(n)) | O(log(n)) | O(log(n)) | O(log(n))   | O(n+m) |
+//! |              | get       | insert    | remove    | range     | append |
+//! |--------------|-----------|-----------|-----------|-----------|--------|
+//! | [`HashMap`]  | O(1)~     | O(1)~*    | O(1)~     | N/A       | N/A    |
+//! | [`BTreeMap`] | O(log(n)) | O(log(n)) | O(log(n)) | O(log(n)) | O(n+m) |
 //!
 //! # Correct and Efficient Usage of Collections
 //!