diff options
| author | Paul Mabileau <paul.mabileau@harfanglab.fr> | 2025-05-17 02:22:13 +0200 |
|---|---|---|
| committer | Paul Mabileau <paul.mabileau@harfanglab.fr> | 2025-05-17 02:29:37 +0200 |
| commit | 35f847363729b16332eab1a85900617218495757 (patch) | |
| tree | 36c45a84371e212e2355c9f24a06803df3fc4cc1 | |
| parent | cd5772e396361c72e4662655687a462aee6c6aea (diff) | |
| download | rust-35f847363729b16332eab1a85900617218495757.tar.gz rust-35f847363729b16332eab1a85900617218495757.zip | |
Docs(lib/coll/btm): Split `extract_if`'s first sentence from the following ones
This also seems like a small mistake: the first main sentence is put in the same paragraph as the other two following ones while other equivalents all have it split. Therefore, do the same here. Signed-off-by: Paul Mabileau <paul.mabileau@harfanglab.fr>
| -rw-r--r-- | library/alloc/src/collections/btree/map.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/library/alloc/src/collections/btree/map.rs b/library/alloc/src/collections/btree/map.rs index 5ca32ed741a..ea81645aa64 100644 --- a/library/alloc/src/collections/btree/map.rs +++ b/library/alloc/src/collections/btree/map.rs @@ -1398,10 +1398,12 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> { } /// Creates an iterator that visits all elements (key-value pairs) in - /// ascending key order and uses a closure to determine if an element should - /// be removed. If the closure returns `true`, the element is removed from - /// the map and yielded. If the closure returns `false`, or panics, the - /// element remains in the map and will not be yielded. + /// ascending key order and uses a closure to determine if an element + /// should be removed. + /// + /// If the closure returns `true`, the element is removed from the map and + /// yielded. If the closure returns `false`, or panics, the element remains + /// in the map and will not be yielded. /// /// The iterator also lets you mutate the value of each element in the /// closure, regardless of whether you choose to keep or remove it. |
