authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-08-17 22:24:07-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-08-19 16:45:16-07:00
log445b33cfc05771d35ca243cde15d0b5594129ae3
treeec500b2276f7daec7ef0ee88457d2af84b1529f4
parent28e95b324027e08be4f0dd48772970254299b976

fix std.os.windows.PathSpace.span

it was returning a pointer to a parameter.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/os/windows.zig+1-1
......@@ -1802,7 +1802,7 @@ pub const PathSpace = struct {
18021802 data: [PATH_MAX_WIDE:0]u16,
18031803 len: usize,
18041804
1805 pub fn span(self: PathSpace) [:0]const u16 {
1805 pub fn span(self: *const PathSpace) [:0]const u16 {
18061806 return self.data[0..self.len :0];
18071807 }
18081808};