about summary refs log tree commit diff
diff options
context:
space:
mode:
authoroliver <16816606+o752d@users.noreply.github.com>2020-11-23 02:47:45 +0000
committerGitHub <noreply@github.com>2020-11-23 02:47:45 +0000
commita804e38ddece7a3b1d8a1d5d4e197f747056ac49 (patch)
tree625e0ad44f8714654d95880374819c76128eaf84
parent32da90b431919eedb3e281a91caea063ba4edb77 (diff)
downloadrust-a804e38ddece7a3b1d8a1d5d4e197f747056ac49.tar.gz
rust-a804e38ddece7a3b1d8a1d5d4e197f747056ac49.zip
doc typo
plus a small edit for clarity
-rw-r--r--library/alloc/src/collections/btree/map.rs4
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.