aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.zig
diff options
context:
space:
mode:
authorJosh Holland <josh@inv.alid.pw>2020-11-06 18:54:08 +0000
committerJosh Holland <josh@inv.alid.pw>2020-11-07 11:15:44 +0000
commitc25b157ddaede518d92ee2d87ad536a5b6b097de (patch)
tree1599c465bab670beb50b63c2a5b9d8f0411fbc9d /lib/std/debug.zig
parentc9551652b01bf47a94c139846f22c5df85d07283 (diff)
downloadzig-c25b157ddaede518d92ee2d87ad536a5b6b097de.tar.gz
zig-c25b157ddaede518d92ee2d87ad536a5b6b097de.zip
remove deprecated uses of ArrayList.span
Diffstat (limited to 'lib/std/debug.zig')
-rw-r--r--lib/std/debug.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig
index fb1ae69f09..0be4ce1f11 100644
--- a/lib/std/debug.zig
+++ b/lib/std/debug.zig
@@ -1509,7 +1509,7 @@ pub const ModuleDebugInfo = switch (builtin.os.tag) {
const mod_index = for (self.sect_contribs) |sect_contrib| {
if (sect_contrib.Section > self.coff.sections.items.len) continue;
// Remember that SectionContribEntry.Section is 1-based.
- coff_section = &self.coff.sections.span()[sect_contrib.Section - 1];
+ coff_section = &self.coff.sections.items[sect_contrib.Section - 1];
const vaddr_start = coff_section.header.virtual_address + sect_contrib.Offset;
const vaddr_end = vaddr_start + sect_contrib.Size;