zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit ea9b38c93c38e402c807b20802eb003bcc4ddc5b (tree)
parent 13b8c638346b82da4856e9c5d688feffa66a32f6
Author: Christian Wesselhoeft <hi@xtian.us>
Date:   Thu, 10 Sep 2020 11:28:51 -0600

fs/file.zig: Update reader to use type alias

This is a minor cosmetic change which updates `reader` and `inStream`
to match `writer` and `outStream` below.

Diffstat:
Mlib/std/fs/file.zig | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/std/fs/file.zig b/lib/std/fs/file.zig @@ -740,14 +740,16 @@ pub const File = struct { } pub const Reader = io.Reader(File, ReadError, read); + /// Deprecated: use `Reader` pub const InStream = Reader; - pub fn reader(file: File) io.Reader(File, ReadError, read) { + pub fn reader(file: File) Reader { return .{ .context = file }; } + /// Deprecated: use `reader` - pub fn inStream(file: File) io.InStream(File, ReadError, read) { + pub fn inStream(file: File) Reader { return .{ .context = file }; }