Commit 445b33cfc0

Andrew Kelley <andrew@ziglang.org>
2022-08-18 07:24:07
fix std.os.windows.PathSpace.span
it was returning a pointer to a parameter.
1 parent 28e95b3
Changed files (1)
lib
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];
     }
 };