Skip to content

Commit 6d19571

Browse files
committed
fix typos
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
1 parent e3e837b commit 6d19571

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ impl CompressorBuilder {
705705
);
706706
let remaining_bytes = remaining_bytes as usize;
707707

708-
// Load the last `remaining_byte`s of data into a final world. We then replicate the loop above,
708+
// Load the last `remaining_byte`s of data into a final word. We then replicate the loop above,
709709
// but shift data out of this word rather than advancing an input pointer and potentially reading
710710
// unowned memory
711711
let mut bytes = [0u8; 8];

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ impl Compressor {
675675
// Now, downshift the `word` and the `entry` to see if they align.
676676
let ignored_bits = entry.ignored_bits;
677677
if entry.code != Code::UNUSED
678-
&& compare_masked(word, entry.symbol.as_u64(), ignored_bits)
678+
&& compare_masked(word, entry.symbol.to_u64(), ignored_bits)
679679
{
680680
// Advance the input by the symbol length (variable) and the output by one code byte
681681
// SAFETY: out_ptr is not null.
@@ -773,7 +773,7 @@ impl Compressor {
773773

774774
let remaining_bytes = remaining_bytes as usize;
775775

776-
// Load the last `remaining_byte`s of data into a final world. We then replicate the loop above,
776+
// Load the last `remaining_byte`s of data into a final word. We then replicate the loop above,
777777
// but shift data out of this word rather than advancing an input pointer and potentially reading
778778
// unowned memory.
779779
let mut bytes = [0u8; 8];
@@ -840,7 +840,7 @@ impl Compressor {
840840
"output buffer sized too small"
841841
);
842842

843-
// Load the last `remaining_byte`s of data into a final world. We then replicate the loop above,
843+
// Load the last `remaining_byte`s of data into a final word. We then replicate the loop above,
844844
// but shift data out of this word rather than advancing an input pointer and potentially reading
845845
// unowned memory.
846846
let mut bytes = [0u8; 8];

0 commit comments

Comments
 (0)