Skip to content

Commit

Permalink
fix typo of anytype to type
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
scottredig authored and alexrp committed Feb 5, 2025
1 parent f01f1e3 commit ff55137
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/std/compress.zig
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ pub const lzma2 = @import("compress/lzma2.zig");
pub const xz = @import("compress/xz.zig");
pub const zstd = @import("compress/zstandard.zig");

pub fn HashedReader(
comptime ReaderType: anytype,
comptime HasherType: anytype,
) type {
pub fn HashedReader(ReaderType: type, HasherType: type) type {
return struct {
child_reader: ReaderType,
hasher: HasherType,
Expand All @@ -40,10 +37,7 @@ pub fn hashedReader(
return .{ .child_reader = reader, .hasher = hasher };
}

pub fn HashedWriter(
comptime WriterType: anytype,
comptime HasherType: anytype,
) type {
pub fn HashedWriter(WriterType: type, HasherType: type) type {
return struct {
child_writer: WriterType,
hasher: HasherType,
Expand Down

0 comments on commit ff55137

Please sign in to comment.