summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2021-06-25 13:18:56 -0700
committerEric Huss <eric@huss.org>2021-06-25 13:18:56 -0700
commit6235e6f93f85134b82500656d9120a58ec7ca328 (patch)
treea7ca566edd67d8efbb5bdeb1b9f6eee34479483e /library/alloc/src
parentf726dbe934d7dcf8ac72e5a8863703e64bb049ae (diff)
downloadrust-6235e6f93f85134b82500656d9120a58ec7ca328.tar.gz
rust-6235e6f93f85134b82500656d9120a58ec7ca328.zip
Fix a few misspellings.
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/collections/btree/fix.rs2
-rw-r--r--library/alloc/src/collections/btree/node.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/src/collections/btree/fix.rs b/library/alloc/src/collections/btree/fix.rs
index af87a9b956a..c4861817dd0 100644
--- a/library/alloc/src/collections/btree/fix.rs
+++ b/library/alloc/src/collections/btree/fix.rs
@@ -3,7 +3,7 @@ use super::node::{marker, ForceResult::*, Handle, LeftOrRight::*, NodeRef, Root}
 
 impl<'a, K: 'a, V: 'a> NodeRef<marker::Mut<'a>, K, V, marker::LeafOrInternal> {
     /// Stocks up a possibly underfull node by merging with or stealing from a
-    /// sibling. If succesful but at the cost of shrinking the parent node,
+    /// sibling. If successful but at the cost of shrinking the parent node,
     /// returns that shrunk parent node. Returns an `Err` if the node is
     /// an empty root.
     fn fix_node_through_parent(
diff --git a/library/alloc/src/collections/btree/node.rs b/library/alloc/src/collections/btree/node.rs
index 3c453529ba8..30d237d8bbc 100644
--- a/library/alloc/src/collections/btree/node.rs
+++ b/library/alloc/src/collections/btree/node.rs
@@ -167,7 +167,7 @@ type BoxedNode<K, V> = NonNull<LeafNode<K, V>>;
 ///   carry a lifetime, because we want it to return `&'a` references.
 ///   Therefore, we define it only for the least powerful type `Immut<'a>`.
 /// - We cannot get implicit coercion from say `Mut<'a>` to `Immut<'a>`.
-///   Therefore, we have to explicitly call `reborrow` on a more powerfull
+///   Therefore, we have to explicitly call `reborrow` on a more powerful
 ///   `NodeRef` in order to reach a method like `into_kv`.
 ///
 /// All methods on `NodeRef` that return some kind of reference, either: