Fix os.File.mode function

This commit is contained in:
Marc Tiehuis 2018-03-23 22:41:08 +13:00
parent 3d1732ef6c
commit 7350181a4a

View File

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