zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 445b33cfc05771d35ca243cde15d0b5594129ae3 (tree)
parent 28e95b324027e08be4f0dd48772970254299b976
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Wed, 17 Aug 2022 22:24:07 -0700

fix std.os.windows.PathSpace.span

it was returning a pointer to a parameter.

Diffstat:
Mlib/std/os/windows.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/os/windows.zig b/lib/std/os/windows.zig @@ -1802,7 +1802,7 @@ pub const PathSpace = struct { data: [PATH_MAX_WIDE:0]u16, len: usize, - pub fn span(self: PathSpace) [:0]const u16 { + pub fn span(self: *const PathSpace) [:0]const u16 { return self.data[0..self.len :0]; } };