Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
Co-Authored-By: RalfJung <post@ralfj.de>
  • Loading branch information
Gankra and RalfJung committed Dec 11, 2018
1 parent 4558340 commit d9c64e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liballoc/collections/btree/node.rs
Expand Up @@ -589,7 +589,7 @@ impl<'a, K: 'a, V: 'a, Type> NodeRef<marker::Immut<'a>, K, V, Type> {
fn into_key_slice(self) -> &'a [K] {
// We have to be careful here because we might be pointing to the shared root.
// In that case, we must not create an `&LeafNode`. We could just return
// an empty slice whenever the lenght is 0 (this includes the shared root),
// an empty slice whenever the length is 0 (this includes the shared root),
// but we want to avoid that run-time check.
// Instead, we create a slice pointing into the node whenever possible.
// We can sometimes do this even for the shared root, as the slice will be
Expand Down

0 comments on commit d9c64e5

Please sign in to comment.