Commit 7350181a4a

Marc Tiehuis <marctiehuis@gmail.com>
2018-03-23 10:41:08
Fix os.File.mode function
1 parent 3d1732e
Changed files (1)
std
std/os/file.zig
@@ -233,7 +233,7 @@ pub const File = struct {
         Unexpected,
     };
 
-    fn mode(self: &File) ModeError!FileMode {
+    fn mode(self: &File) ModeError!os.FileMode {
         if (is_posix) {
             var stat: posix.Stat = undefined;
             const err = posix.getErrno(posix.fstat(self.handle, &stat));