Skip to content

Commit a0cf162

Browse files
Rollup merge of #79333 - o752d:patch-3, r=Mark-Simulacrum
doc typo plus a small edit for clarity
2 parents b48ebc6 + a804e38 commit a0cf162

File tree

1 file changed

+2
-2
lines changed
  • library/alloc/src/collections/btree

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1551,12 +1551,12 @@ where
15511551
pred: F,
15521552
inner: DrainFilterInner<'a, K, V>,
15531553
}
1554-
/// Most of the implementation of DrainFilter, independent of the type
1554+
/// Most of the implementation of DrainFilter are generic over the type
15551555
/// of the predicate, thus also serving for BTreeSet::DrainFilter.
15561556
pub(super) struct DrainFilterInner<'a, K: 'a, V: 'a> {
15571557
/// Reference to the length field in the borrowed map, updated live.
15581558
length: &'a mut usize,
1559-
/// Burried reference to the root field in the borrowed map.
1559+
/// Buried reference to the root field in the borrowed map.
15601560
/// Wrapped in `Option` to allow drop handler to `take` it.
15611561
dormant_root: Option<DormantMutRef<'a, Root<K, V>>>,
15621562
/// Contains a leaf edge preceding the next element to be returned, or the last leaf edge.

0 commit comments

Comments
 (0)