From b735764898412c5b9388fdf729c8ad8db43ddde5 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 9 Jun 2019 19:24:24 -0400 Subject: different array literal syntax when inferring the size old syntax: []i32{1, 2, 3} new syntax: [_]i32{1, 2, 3} closes #1797 --- std/debug.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'std/debug.zig') diff --git a/std/debug.zig b/std/debug.zig index e2f4a67755..62f99caccf 100644 --- a/std/debug.zig +++ b/std/debug.zig @@ -820,7 +820,7 @@ fn openSelfDebugInfoWindows(allocator: *mem.Allocator) !DebugInfo { const len = try di.coff.getPdbPath(path_buf[0..]); const raw_path = path_buf[0..len]; - const path = try fs.path.resolve(allocator, [][]const u8{raw_path}); + const path = try fs.path.resolve(allocator, [_][]const u8{raw_path}); try di.pdb.openFile(di.coff, path); @@ -1418,7 +1418,7 @@ const LineNumberProgram = struct { return error.InvalidDebugInfo; } else self.include_dirs[file_entry.dir_index]; - const file_name = try fs.path.join(self.file_entries.allocator, [][]const u8{ dir_name, file_entry.file_name }); + const file_name = try fs.path.join(self.file_entries.allocator, [_][]const u8{ dir_name, file_entry.file_name }); errdefer self.file_entries.allocator.free(file_name); return LineInfo{ .line = if (self.prev_line >= 0) @intCast(u64, self.prev_line) else 0, -- cgit v1.2.3