Skip to content

Commit 119b203

Browse files
authored
std.compress.flate: fix typo in function name (#19002)
1 parent 31763d2 commit 119b203

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/std/compress/flate/huffman_decoder.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ fn HuffmanDecoder(
6969

7070
/// Generates symbols and lookup tables from list of code lens for each symbol.
7171
pub fn generate(self: *Self, lens: []const u4) !void {
72-
try checkCompletnes(lens);
72+
try checkCompleteness(lens);
7373

7474
// init alphabet with code_bits
7575
for (self.symbols, 0..) |_, i| {
@@ -123,7 +123,7 @@ fn HuffmanDecoder(
123123
/// Huffman code for n symbols.
124124
///
125125
/// Reference: https://github.com/madler/zlib/blob/5c42a230b7b468dff011f444161c0145b5efae59/contrib/puff/puff.c#L340
126-
fn checkCompletnes(lens: []const u4) !void {
126+
fn checkCompleteness(lens: []const u4) !void {
127127
if (alphabet_size == 286)
128128
if (lens[256] == 0) return error.MissingEndOfBlockCode;
129129

0 commit comments

Comments
 (0)