From 55b165ac15a7528a3c679d928b1edf9d701f850b Mon Sep 17 00:00:00 2001 From: Riley Bruins Date: Sat, 15 Feb 2025 13:33:38 -0800 Subject: fix(treesitter): `TSNode:field()` returns all children with the given field --- runtime/doc/treesitter.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/doc') diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt index b04f13add5..344bd37ddd 100644 --- a/runtime/doc/treesitter.txt +++ b/runtime/doc/treesitter.txt @@ -713,7 +713,7 @@ TSNode:extra() *TSNode:extra()* (`boolean`) TSNode:field({name}) *TSNode:field()* - Returns a table of the nodes corresponding to the {name} field. + Returns a list of all the node's children that have the given field name. Parameters: ~ • {name} (`string`) -- cgit