Improve treesit-node-child-by-field-name docstring
authorStefan Kangas <stefankangas@gmail.com>
Sun, 21 Jul 2024 20:20:33 +0000 (22:20 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Sun, 21 Jul 2024 20:21:11 +0000 (22:21 +0200)
* src/treesit.c (Ftreesit_node_child_by_field_name): Improve docstring.

src/treesit.c

index 7c8c655f5614c12bac20c733f582f1cb367d0062..3ae55d77a91d84d0f145db6da7b9c6ca61079b91 100644 (file)
@@ -2137,7 +2137,7 @@ nil.  If NODE is nil, return nil.  */)
 DEFUN ("treesit-node-child-by-field-name",
        Ftreesit_node_child_by_field_name,
        Streesit_node_child_by_field_name, 2, 2, 0,
-       doc: /* Return the child of NODE with FIELD-NAME.
+       doc: /* Return the child of NODE with FIELD-NAME (a string).
 Return nil if there is no such child.  If NODE is nil, return nil.  */)
   (Lisp_Object node, Lisp_Object field_name)
 {