From 780557a29e41b0679026637d018bca645753bfcf Mon Sep 17 00:00:00 2001 From: mxsm Date: Sat, 23 Sep 2023 10:34:55 +0800 Subject: [PATCH] [ISSUE #629]Fix some spelling mistakes --- src/byte_str.rs | 2 +- src/header/map.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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