diff options
| author | Josh Holland <josh@inv.alid.pw> | 2020-11-06 18:54:08 +0000 |
|---|---|---|
| committer | Josh Holland <josh@inv.alid.pw> | 2020-11-07 11:15:44 +0000 |
| commit | c25b157ddaede518d92ee2d87ad536a5b6b097de (patch) | |
| tree | 1599c465bab670beb50b63c2a5b9d8f0411fbc9d /lib/std/process.zig | |
| parent | c9551652b01bf47a94c139846f22c5df85d07283 (diff) | |
| download | zig-c25b157ddaede518d92ee2d87ad536a5b6b097de.tar.gz zig-c25b157ddaede518d92ee2d87ad536a5b6b097de.zip | |
remove deprecated uses of ArrayList.span
Diffstat (limited to 'lib/std/process.zig')
| -rw-r--r-- | lib/std/process.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/process.zig b/lib/std/process.zig index 9e1e76c2d3..b083126b31 100644 --- a/lib/std/process.zig +++ b/lib/std/process.zig @@ -519,8 +519,8 @@ pub fn argsAlloc(allocator: *mem.Allocator) ![][:0]u8 { try slice_list.append(arg.len); } - const contents_slice = contents.span(); - const slice_sizes = slice_list.span(); + const contents_slice = contents.items; + const slice_sizes = slice_list.items; const contents_size_bytes = try math.add(usize, contents_slice.len, slice_sizes.len); const slice_list_bytes = try math.mul(usize, @sizeOf([]u8), slice_sizes.len); const total_bytes = try math.add(usize, slice_list_bytes, contents_size_bytes); |
