Skip to content

Commit d9c64e5

Browse files
GankraRalfJung
andauthored
Typo
Co-Authored-By: RalfJung <[email protected]>
1 parent 4558340 commit d9c64e5

File tree

1 file changed

+1
-1
lines changed
  • src/liballoc/collections/btree

1 file changed

+1
-1
lines changed

src/liballoc/collections/btree/node.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ impl<'a, K: 'a, V: 'a, Type> NodeRef<marker::Immut<'a>, K, V, Type> {
589589
fn into_key_slice(self) -> &'a [K] {
590590
// We have to be careful here because we might be pointing to the shared root.
591591
// In that case, we must not create an `&LeafNode`. We could just return
592-
// an empty slice whenever the lenght is 0 (this includes the shared root),
592+
// an empty slice whenever the length is 0 (this includes the shared root),
593593
// but we want to avoid that run-time check.
594594
// Instead, we create a slice pointing into the node whenever possible.
595595
// We can sometimes do this even for the shared root, as the slice will be

0 commit comments

Comments
 (0)