commit 23d6381e8b5fb63bc9cba5cc5c78b7946ca4746a (tree) parent 0c24b8ec66e7f8ade2b1014fd5c06110354bcf43 Author: mlugg <mlugg@mlugg.co.uk> Date: Thu, 18 Sep 2025 10:35:14 +0100 std.debug: fix typo Diffstat:
| M | lib/std/debug/SelfInfo/DarwinModule.zig | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/debug/SelfInfo/DarwinModule.zig b/lib/std/debug/SelfInfo/DarwinModule.zig @@ -203,7 +203,7 @@ fn loadMachO(module: *const DarwinModule, gpa: Allocator) !DebugInfo.LoadedMachO .fun_size => { state = .ensym; if (last_sym.strx != 0) { - const name = std.mem.sliceTo(strings[sym.n_strx..], 0); + const name = std.mem.sliceTo(strings[last_sym.strx..], 0); const gop = symbol_names.getOrPutAssumeCapacity(name); if (!gop.found_existing) { assert(gop.index == symbols.items.len);