From 26320652bea2f46b8f8d94f9abd12409245e0ca7 Mon Sep 17 00:00:00 2001 From: Jonas Spinner Date: Fri, 13 Sep 2024 22:57:18 +0200 Subject: [PATCH] fix: docs first3 (#33) --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 62444ee..b7c8826 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -89,9 +89,9 @@ impl Symbol { self.0 as u16 } - /// Get the first two bytes of the symbol as a `u16`. + /// Get the first three bytes of the symbol as a `u64`. /// - /// If the Symbol is one or zero bytes, this will return `0u16`. + /// If the Symbol is one or zero bytes, this will return `0u64`. #[inline] pub fn first3(self) -> u64 { self.0 & 0xFF_FF_FF @@ -423,7 +423,7 @@ impl Compressor { /// to hold the encoded data. /// /// When this call returns, `values` will hold the compressed bytes and have - /// its length set to the length of the compresed text. + /// its length set to the length of the compressed text. /// /// ``` /// use fsst::{Compressor, CompressorBuilder, Symbol};