From 7350181a4a778f9d03186e5123beffdf80f58606 Mon Sep 17 00:00:00 2001 From: Marc Tiehuis Date: Fri, 23 Mar 2018 22:41:08 +1300 Subject: [PATCH] Fix os.File.mode function --- std/os/file.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/os/file.zig b/std/os/file.zig index 772fbf7c73..eed3a443b9 100644 --- a/std/os/file.zig +++ b/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));