mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
fix std.os.windows.PathSpace.span
it was returning a pointer to a parameter.
This commit is contained in:
parent
28e95b3240
commit
445b33cfc0
@ -1802,7 +1802,7 @@ pub const PathSpace = struct {
|
|||||||
data: [PATH_MAX_WIDE:0]u16,
|
data: [PATH_MAX_WIDE:0]u16,
|
||||||
len: usize,
|
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];
|
return self.data[0..self.len :0];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user