authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-11-30 18:36:17-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-11-30 18:36:47-05:00
log2e7350140d4fbf9335e48693ccc4cba77d229c84
tree879d454b8c77d8a9dfeb4044ab55f66e513e7810
parent034ccb4e4e64dda2626535d46a4bc0367bcc1ad2
signaturelock-open Commit is signed but in an unrecognized format.

further clarify std.fs function docs


1 files changed, 4 insertions(+), 2 deletions(-)

lib/std/fs.zig+4-2
......@@ -719,7 +719,8 @@ pub const Dir = struct {
719719 return File{ .handle = fd };
720720 }
721721
722 /// Same as `openFile` but the path parameter is WTF-16 encoded.
722 /// Same as `openFile` but Windows-only and the path parameter is
723 /// [WTF-16](https://simonsapin.github.io/wtf-8/#potentially-ill-formed-utf-16) encoded.
723724 pub fn openFileW(self: Dir, sub_path_w: [*:0]const u16, flags: File.OpenFlags) File.OpenError!File {
724725 const w = os.windows;
725726 const access_mask = w.SYNCHRONIZE |
......@@ -756,7 +757,8 @@ pub const Dir = struct {
756757 return File{ .handle = fd };
757758 }
758759
759 /// Same as `createFile` but the path parameter is WTF-16 encoded.
760 /// Same as `createFile` but Windows-only and the path parameter is
761 /// [WTF-16](https://simonsapin.github.io/wtf-8/#potentially-ill-formed-utf-16) encoded.
760762 pub fn createFileW(self: Dir, sub_path_w: [*:0]const u16, flags: File.CreateFlags) File.OpenError!File {
761763 const w = os.windows;
762764 const access_mask = w.SYNCHRONIZE | w.GENERIC_WRITE |