aboutsummaryrefslogtreecommitdiff
path: root/src/eval/html/Root.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/eval/html/Root.zig')
-rw-r--r--src/eval/html/Root.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval/html/Root.zig b/src/eval/html/Root.zig
index acfe82e..6c4c37a 100644
--- a/src/eval/html/Root.zig
+++ b/src/eval/html/Root.zig
@@ -39,7 +39,7 @@ pub fn append(self: *Self, raw: anytype) Error!void {
const el: Element = blk: {
const T = @TypeOf(raw);
if (T == Element) break :blk raw;
- if (@hasDecl(T, "html")) break :blk try raw.html(self.allocator());
+ if (std.meta.hasMethod(T, "html")) break :blk try raw.html(self.allocator());
@compileError("cannot convert " ++ @typeName(T) ++ " into " ++ @typeName(Element));
};
self.content.append(&el.node().node);