From 445b33cfc05771d35ca243cde15d0b5594129ae3 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 17 Aug 2022 22:24:07 -0700 Subject: [PATCH] fix std.os.windows.PathSpace.span it was returning a pointer to a parameter. --- lib/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 index c79ccb5113..b0a0f6d407 100644 --- 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]; } };