Rollup merge of #79333 - o752d:patch-3, r=Mark-Simulacrum

doc typo

plus a small edit for clarity
This commit is contained in:
Jonas Schievink 2020-11-23 15:25:51 +01:00 committed by GitHub
commit a0cf162329
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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