Co-authored-by: Francis Bouvier <francis@lightpanda.io>
This commit is contained in:
Pierre TachoireandFrancis Bouvier authored and GitHub committed 2023-12-15 13:54:52 +01:00
1 parent be6ba7a1d6
commit 314d2dae80
1 file changed
+1 -1
+1 -1
View File
@@ -191,7 +191,7 @@ pub const WalkerDepthFirst = struct {
// WalkerChildren iterates over the root's children only.
pub const WalkerChildren = struct {
pub fn get_next(_: WalkerChildren, root: *parser.Node, cur: ?*parser.Node) !?*parser.Node {
// On wlak start, we return the first root's child.
// On walk start, we return the first root's child.
if (cur == null) return try parser.nodeFirstChild(root);
// If cur is root, then return null.