diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-06-27 19:33:03 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-07-07 22:43:51 -0700 |
| commit | 9f27d770a1832cf3017a8b2f7281b6faf0347a51 (patch) | |
| tree | ef5207f926478533af2e4f84ff7fdc62e6f61a6f /lib/std/net.zig | |
| parent | fc2c1883b36a6ba8c7303d12b57147656dc7dd70 (diff) | |
| download | zig-9f27d770a1832cf3017a8b2f7281b6faf0347a51.tar.gz zig-9f27d770a1832cf3017a8b2f7281b6faf0347a51.zip | |
std.io: deprecated Reader/Writer; introduce new API
Diffstat (limited to 'lib/std/net.zig')
| -rw-r--r-- | lib/std/net.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/net.zig b/lib/std/net.zig index 9d821c4399..a2b5fff70a 100644 --- a/lib/std/net.zig +++ b/lib/std/net.zig @@ -1845,8 +1845,8 @@ pub const Stream = struct { pub const ReadError = posix.ReadError; pub const WriteError = posix.WriteError; - pub const Reader = io.Reader(Stream, ReadError, read); - pub const Writer = io.Writer(Stream, WriteError, write); + pub const Reader = io.GenericReader(Stream, ReadError, read); + pub const Writer = io.GenericWriter(Stream, WriteError, write); pub fn reader(self: Stream) Reader { return .{ .context = self }; |
