Commit ea9b38c93c

Christian Wesselhoeft <hi@xtian.us>
2020-09-10 19:28:51
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.
1 parent 13b8c63
Changed files (1)
lib
std
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 };
     }