aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-08-17 22:24:07 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-08-19 16:45:16 -0700
commit445b33cfc05771d35ca243cde15d0b5594129ae3 (patch)
treeec500b2276f7daec7ef0ee88457d2af84b1529f4 /lib/std/os
parent28e95b324027e08be4f0dd48772970254299b976 (diff)
downloadzig-445b33cfc05771d35ca243cde15d0b5594129ae3.tar.gz
zig-445b33cfc05771d35ca243cde15d0b5594129ae3.zip
fix std.os.windows.PathSpace.span
it was returning a pointer to a parameter.
Diffstat (limited to 'lib/std/os')
-rw-r--r--lib/std/os/windows.zig2
1 files changed, 1 insertions, 1 deletions
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];
}
};