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.
This commit is contained in:
Christian Wesselhoeft 2020-09-10 11:28:51 -06:00 committed by Andrew Kelley
parent 13b8c63834
commit ea9b38c93c

View File

@ -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 };
}