diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-02-03 11:51:29 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-02-03 11:51:29 -0500 |
| commit | abf5ae6897bb23e49e4232ab8be7ed61ea9520b6 (patch) | |
| tree | a0ff1d117e79a63827995c65d22a3fc4e46a37e1 /std/os/index.zig | |
| parent | b8f59e14cdbf90cf724ed9e721c1909293f41b3b (diff) | |
| download | zig-abf5ae6897bb23e49e4232ab8be7ed61ea9520b6.tar.gz zig-abf5ae6897bb23e49e4232ab8be7ed61ea9520b6.zip | |
*WIP* error sets - support fns called at comptime
Diffstat (limited to 'std/os/index.zig')
| -rw-r--r-- | std/os/index.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/std/os/index.zig b/std/os/index.zig index a303ee4be1..aad24cf996 100644 --- a/std/os/index.zig +++ b/std/os/index.zig @@ -1072,7 +1072,7 @@ pub fn changeCurDir(allocator: &Allocator, dir_path: []const u8) !void { } /// Read value of a symbolic link. -pub fn readLink(allocator: &Allocator, pathname: []const u8) ![]u8 { +pub fn readLink(allocator: &Allocator, pathname: []const u8) error![]u8 { const path_buf = try allocator.alloc(u8, pathname.len + 1); defer allocator.free(path_buf); @@ -1267,7 +1267,7 @@ pub const ArgIteratorWindows = struct { } /// You must free the returned memory when done. - pub fn next(self: &ArgIteratorWindows, allocator: &Allocator) ?internalNext.errors![]u8 { + pub fn next(self: &ArgIteratorWindows, allocator: &Allocator) ?(@typeOf(internalNext).ReturnType.ErrorSet![]u8) { // march forward over whitespace while (true) : (self.index += 1) { const byte = self.cmd_line[self.index]; |
