Skip to content

Commit 35f8473

Browse files
committed
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>
1 parent cd5772e commit 35f8473

File tree

1 file changed

+6
-4
lines changed
  • library/alloc/src/collections/btree

1 file changed

+6
-4
lines changed

library/alloc/src/collections/btree/map.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,10 +1398,12 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
13981398
}
13991399

14001400
/// Creates an iterator that visits all elements (key-value pairs) in
1401-
/// ascending key order and uses a closure to determine if an element should
1402-
/// be removed. If the closure returns `true`, the element is removed from
1403-
/// the map and yielded. If the closure returns `false`, or panics, the
1404-
/// element remains in the map and will not be yielded.
1401+
/// ascending key order and uses a closure to determine if an element
1402+
/// should be removed.
1403+
///
1404+
/// If the closure returns `true`, the element is removed from the map and
1405+
/// yielded. If the closure returns `false`, or panics, the element remains
1406+
/// in the map and will not be yielded.
14051407
///
14061408
/// The iterator also lets you mutate the value of each element in the
14071409
/// closure, regardless of whether you choose to keep or remove it.

0 commit comments

Comments
 (0)