From: Stefan Kangas Date: Sun, 21 Jul 2024 20:20:33 +0000 (+0200) Subject: Improve treesit-node-child-by-field-name docstring X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=15e5d7615d79f7060509dc06a03d5f155e41988f;p=emacs.git Improve treesit-node-child-by-field-name docstring * src/treesit.c (Ftreesit_node_child_by_field_name): Improve docstring. (cherry picked from commit c66bda1a19afd7d8391765e2ed207e44107d8a50) --- diff --git a/src/treesit.c b/src/treesit.c index 722f2a9360d..baa1b8dfd11 100644 --- a/src/treesit.c +++ b/src/treesit.c @@ -2146,7 +2146,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) {