authorgravatar for robinsoncol@users.noreply.github.comRobinson Collado <robinsoncol@users.noreply.github.com> 2024-02-24 20:47:17-05:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2024-02-24 20:47:17-05:00
log119b2030f70de9ed900ce3594201de6f869b71c8
treeb991014c9fcf4df7e419c62df0c683dfb301ea22
parent31763d28c460933500916707954da1590bfe893d
signaturebadge-check Signed by PGP key B5690EEEBB952194

std.compress.flate: fix typo in function name (#19002)


1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/compress/flate/huffman_decoder.zig+2-2
......@@ -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