From 15e5d7615d79f7060509dc06a03d5f155e41988f Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sun, 21 Jul 2024 22:20:33 +0200 Subject: [PATCH] Improve treesit-node-child-by-field-name docstring * src/treesit.c (Ftreesit_node_child_by_field_name): Improve docstring. (cherry picked from commit c66bda1a19afd7d8391765e2ed207e44107d8a50) --- src/treesit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.2