diff options
| author | Alexis Beingessner <a.beingessner@gmail.com> | 2018-12-11 08:55:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-11 08:55:15 +0100 |
| commit | d9c64e50a07dec062c273f4ec4c8f5985af13273 (patch) | |
| tree | 174a73e22a5349c928d7fd2ce4ce3932f1543692 /src | |
| parent | 4558340ecc64c2702ad89b8175e07ac1c71e273b (diff) | |
| download | rust-d9c64e50a07dec062c273f4ec4c8f5985af13273.tar.gz rust-d9c64e50a07dec062c273f4ec4c8f5985af13273.zip | |
Typo
Co-Authored-By: RalfJung <post@ralfj.de>
Diffstat (limited to 'src')
| -rw-r--r-- | src/liballoc/collections/btree/node.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/collections/btree/node.rs b/src/liballoc/collections/btree/node.rs index a9f6cdbb51f..a2d2d3c74be 100644 --- a/src/liballoc/collections/btree/node.rs +++ b/src/liballoc/collections/btree/node.rs @@ -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 |
