diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-11-02 09:05:43 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-11-02 09:05:43 +0100 |
| commit | ecb79fc433765688cf60ac4ee8ebe38e782641cd (patch) | |
| tree | 68c954fdc41bdf0b4b8e858c4252fd3b959fb85a /src/zilch/html | |
| parent | 4363d446c1f40515f7830caa644cc4e580841122 (diff) | |
update to zig 0.17dev
Diffstat (limited to 'src/zilch/html')
| -rw-r--r-- | src/zilch/html/Attribute.zig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/zilch/html/Attribute.zig b/src/zilch/html/Attribute.zig index 1db49a0..0aa0354 100644 --- a/src/zilch/html/Attribute.zig +++ b/src/zilch/html/Attribute.zig @@ -13,12 +13,11 @@ pub fn from(attributes: anytype) []const Self { @compileError("struct needed"); } - const fields = info.@"struct".fields; + const fields = info.@"struct".field_names; var attrs: []const Self = &.{}; - for (fields) |field| { - const name = field.name; + for (fields) |name| { const value = @field(attributes, name); const next_attr: []const Self = &.{.{ .name = name, .value = value }}; |