Skip to content

Commit

Permalink
fix: docs first3 (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasspinner committed Sep 13, 2024
1 parent eab2743 commit 2632065
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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};
Expand Down

0 comments on commit 2632065

Please sign in to comment.