authorgravatar for git@scottredig.comScott Redig <git@scottredig.com> 2025-02-04 13:55:41-08:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-02-05 13:58:15+01:00
logff551374a03c3310bdcbf6f5efa62b670037c3b0
tree77c37c52729aa52097d84e4c68dcb38d3fd9cf76
parentf01f1e33c96f0b00db8e036a654c1b3bf8531cd8

fix typo of anytype to type

This seems like a simple typo. The values are immediately used in a struct as types, so there's no reason to use anytype here, afaik.

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

lib/std/compress.zig+2-8
......@@ -10,10 +10,7 @@ pub const lzma2 = @import("compress/lzma2.zig");
1010pub const xz = @import("compress/xz.zig");
1111pub const zstd = @import("compress/zstandard.zig");
1212
13pub fn HashedReader(
14 comptime ReaderType: anytype,
15 comptime HasherType: anytype,
16) type {
13pub fn HashedReader(ReaderType: type, HasherType: type) type {
1714 return struct {
1815 child_reader: ReaderType,
1916 hasher: HasherType,
......@@ -40,10 +37,7 @@ pub fn hashedReader(
4037 return .{ .child_reader = reader, .hasher = hasher };
4138}
4239
43pub fn HashedWriter(
44 comptime WriterType: anytype,
45 comptime HasherType: anytype,
46) type {
40pub fn HashedWriter(WriterType: type, HasherType: type) type {
4741 return struct {
4842 child_writer: WriterType,
4943 hasher: HasherType,