diff --git a/prototype/doubt-difftool/main.swift b/prototype/doubt-difftool/main.swift index 7d8c07485..55fd7b304 100644 --- a/prototype/doubt-difftool/main.swift +++ b/prototype/doubt-difftool/main.swift @@ -43,7 +43,7 @@ if let a = arguments[1] { print(Cofree.ana { node in let count = ts_node_child_count(node) guard count > 0 else { - return String.fromCString(ts_node_string(node, document)).map(Syntax.Leaf)! + return String.fromCString(ts_node_name(node, document)).map(Syntax.Leaf)! } return .Indexed((0..