diff options
| author | Jonas Schievink <jonasschievink@gmail.com> | 2020-11-23 15:25:51 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-23 15:25:51 +0100 |
| commit | a0cf162329c08caf1489e6838bfc24447c6f1029 (patch) | |
| tree | fc5c64e84ea57377df30dedb2b804d5eaeac1ab4 | |
| parent | b48ebc6b15707ed6df09443b8f5878260f4def12 (diff) | |
| parent | a804e38ddece7a3b1d8a1d5d4e197f747056ac49 (diff) | |
| download | rust-a0cf162329c08caf1489e6838bfc24447c6f1029.tar.gz rust-a0cf162329c08caf1489e6838bfc24447c6f1029.zip | |
Rollup merge of #79333 - o752d:patch-3, r=Mark-Simulacrum
doc typo plus a small edit for clarity
| -rw-r--r-- | library/alloc/src/collections/btree/map.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/src/collections/btree/map.rs b/library/alloc/src/collections/btree/map.rs index 383f4487aff..eb32cef24a1 100644 --- a/library/alloc/src/collections/btree/map.rs +++ b/library/alloc/src/collections/btree/map.rs @@ -1551,12 +1551,12 @@ where pred: F, 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. pub(super) struct DrainFilterInner<'a, K: 'a, V: 'a> { /// Reference to the length field in the borrowed map, updated live. 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. dormant_root: Option<DormantMutRef<'a, Root<K, V>>>, /// Contains a leaf edge preceding the next element to be returned, or the last leaf edge. |
