mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
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.
This commit is contained in:
parent
f01f1e33c9
commit
ff551374a0
@ -10,10 +10,7 @@ pub const lzma2 = @import("compress/lzma2.zig");
|
|||||||
pub const xz = @import("compress/xz.zig");
|
pub const xz = @import("compress/xz.zig");
|
||||||
pub const zstd = @import("compress/zstandard.zig");
|
pub const zstd = @import("compress/zstandard.zig");
|
||||||
|
|
||||||
pub fn HashedReader(
|
pub fn HashedReader(ReaderType: type, HasherType: type) type {
|
||||||
comptime ReaderType: anytype,
|
|
||||||
comptime HasherType: anytype,
|
|
||||||
) type {
|
|
||||||
return struct {
|
return struct {
|
||||||
child_reader: ReaderType,
|
child_reader: ReaderType,
|
||||||
hasher: HasherType,
|
hasher: HasherType,
|
||||||
@ -40,10 +37,7 @@ pub fn hashedReader(
|
|||||||
return .{ .child_reader = reader, .hasher = hasher };
|
return .{ .child_reader = reader, .hasher = hasher };
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn HashedWriter(
|
pub fn HashedWriter(WriterType: type, HasherType: type) type {
|
||||||
comptime WriterType: anytype,
|
|
||||||
comptime HasherType: anytype,
|
|
||||||
) type {
|
|
||||||
return struct {
|
return struct {
|
||||||
child_writer: WriterType,
|
child_writer: WriterType,
|
||||||
hasher: HasherType,
|
hasher: HasherType,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user