mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
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:
parent
13b8c63834
commit
ea9b38c93c
@ -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 };
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user