about summary refs log tree commit diff
path: root/src/liballoc/collections
diff options
context:
space:
mode:
authorBrian Wignall <brianwignall@gmail.com>2019-11-26 22:19:54 -0500
committerBrian Wignall <brianwignall@gmail.com>2019-11-26 22:19:54 -0500
commit16fabd8efd416a8b957e369b8be2470e1271af9e (patch)
tree56aa5e9a690b55f0d28dd0556d918ddd23475bbc /src/liballoc/collections
parenta7d791b4503a86c1b16b4393ba7998ef8b561a27 (diff)
downloadrust-16fabd8efd416a8b957e369b8be2470e1271af9e.tar.gz
rust-16fabd8efd416a8b957e369b8be2470e1271af9e.zip
Fix spelling typos
Diffstat (limited to 'src/liballoc/collections')
-rw-r--r--src/liballoc/collections/btree/node.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/collections/btree/node.rs b/src/liballoc/collections/btree/node.rs
index 0b5a271dbea..ab010b35f6a 100644
--- a/src/liballoc/collections/btree/node.rs
+++ b/src/liballoc/collections/btree/node.rs
@@ -596,7 +596,7 @@ impl<'a, K: 'a, V: 'a, Type> NodeRef<marker::Immut<'a>, K, V, Type> {
             // (We might be one-past-the-end, but that is allowed by LLVM.)
             // Getting the pointer is tricky though.  `NodeHeader` does not have a `keys`
             // field because we want its size to not depend on the alignment of `K`
-            // (needed becuase `as_header` should be safe).  We cannot call `as_leaf`
+            // (needed because `as_header` should be safe).  We cannot call `as_leaf`
             // because we might be the shared root.
             // For this reason, `NodeHeader` has this `K2` parameter (that's usually `()`
             // and hence just adds a size-0-align-1 field, not affecting layout).