mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
Fix os.File.mode function
This commit is contained in:
parent
3d1732ef6c
commit
7350181a4a
@ -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));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user