aboutsummaryrefslogtreecommitdiff
path: root/std/event/fs.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-06-11 00:09:58 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-06-11 00:09:58 -0400
commit33371ab55c01d896b91df13eafe6e5c601400a07 (patch)
tree879666e7729aaef2273e8c336b425909df3d2022 /std/event/fs.zig
parentd504318f2e0f3054c772abbd34f938f2cefa6ccc (diff)
parent34a22a85ca8d4371fe9b8f921cce858ab4351cca (diff)
downloadzig-33371ab55c01d896b91df13eafe6e5c601400a07.tar.gz
zig-33371ab55c01d896b91df13eafe6e5c601400a07.zip
Merge remote-tracking branch 'origin/master' into copy-elision-3
Diffstat (limited to 'std/event/fs.zig')
-rw-r--r--std/event/fs.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/event/fs.zig b/std/event/fs.zig
index 7a6a5861b2..b48f8723c1 100644
--- a/std/event/fs.zig
+++ b/std/event/fs.zig
@@ -887,7 +887,7 @@ pub fn Watch(comptime V: type) type {
}
async fn addFileKEvent(self: *Self, file_path: []const u8, value: V) !?V {
- const resolved_path = try std.fs.path.resolve(self.channel.loop.allocator, [][]const u8{file_path});
+ const resolved_path = try std.fs.path.resolve(self.channel.loop.allocator, [_][]const u8{file_path});
var resolved_path_consumed = false;
defer if (!resolved_path_consumed) self.channel.loop.allocator.free(resolved_path);