commit 119b2030f70de9ed900ce3594201de6f869b71c8 (tree)
parent 31763d28c460933500916707954da1590bfe893d
Author: Robinson Collado <robinsoncol@users.noreply.github.com>
Date: Sat, 24 Feb 2024 20:47:17 -0500
std.compress.flate: fix typo in function name (#19002)
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/std/compress/flate/huffman_decoder.zig b/lib/std/compress/flate/huffman_decoder.zig
@@ -69,7 +69,7 @@ fn HuffmanDecoder(
/// Generates symbols and lookup tables from list of code lens for each symbol.
pub fn generate(self: *Self, lens: []const u4) !void {
- try checkCompletnes(lens);
+ try checkCompleteness(lens);
// init alphabet with code_bits
for (self.symbols, 0..) |_, i| {
@@ -123,7 +123,7 @@ fn HuffmanDecoder(
/// Huffman code for n symbols.
///
/// Reference: https://github.com/madler/zlib/blob/5c42a230b7b468dff011f444161c0145b5efae59/contrib/puff/puff.c#L340
- fn checkCompletnes(lens: []const u4) !void {
+ fn checkCompleteness(lens: []const u4) !void {
if (alphabet_size == 286)
if (lens[256] == 0) return error.MissingEndOfBlockCode;