zig stage 2 compatibility

This commit is contained in:
Robin Voetter
2022-08-20 00:30:17 +02:00
parent 2bd9927cfe
commit 5af6ffe864
4 changed files with 7 additions and 7 deletions

View File

@@ -56,7 +56,8 @@ pub const Element = struct {
}
pub fn findChildByTag(self: Element, tag: []const u8) ?*Element {
return self.findChildrenByTag(tag).next();
var it = self.findChildrenByTag(tag);
return it.next();
}
pub fn findChildrenByTag(self: Element, tag: []const u8) FindChildrenByTagIterator {