aboutsummaryrefslogtreecommitdiff
path: root/src/zilch/Env/value.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-11-02 09:05:43 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2026-11-02 09:05:43 +0100
commitecb79fc433765688cf60ac4ee8ebe38e782641cd (patch)
tree68c954fdc41bdf0b4b8e858c4252fd3b959fb85a /src/zilch/Env/value.zig
parent4363d446c1f40515f7830caa644cc4e580841122 (diff)
update to zig 0.17dev
Diffstat (limited to 'src/zilch/Env/value.zig')
-rw-r--r--src/zilch/Env/value.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zilch/Env/value.zig b/src/zilch/Env/value.zig
index ea54ff2..398b99b 100644
--- a/src/zilch/Env/value.zig
+++ b/src/zilch/Env/value.zig
@@ -7,8 +7,8 @@ pub fn isString(comptime T: type) bool {
const info = @typeInfo(T);
if (info != .pointer) break :blk false;
- const ptr = &info.pointer;
- if (ptr.is_volatile or ptr.is_allowzero) break :blk false;
+ const ptr = info.pointer;
+ if (ptr.attrs.@"volatile" or ptr.attrs.@"allowzero") break :blk false;
if (ptr.size == .slice) {
break :blk ptr.child == u8;