diff --git a/src/byte_str.rs b/src/byte_str.rs index e83ff75d..dec222b5 100644 --- a/src/byte_str.rs +++ b/src/byte_str.rs @@ -20,7 +20,7 @@ impl ByteStr { #[inline] pub const fn from_static(val: &'static str) -> ByteStr { ByteStr { - // Invariant: val is a str so contains vaid UTF-8. + // Invariant: val is a str so contains valid UTF-8. bytes: Bytes::from_static(val.as_bytes()), } } diff --git a/src/header/map.rs b/src/header/map.rs index 7513227a..e243c7c1 100644 --- a/src/header/map.rs +++ b/src/header/map.rs @@ -224,7 +224,7 @@ enum Cursor { /// limit enables using `u16` to represent all offsets, which takes 2 bytes /// instead of 8 on 64 bit processors. /// -/// Setting this limit is especially benificial for `indices`, making it more +/// Setting this limit is especially beneficial for `indices`, making it more /// cache friendly. More hash codes can fit in a cache line. /// /// You may notice that `u16` may represent more than 32,768 values. This is