From 9fc2f486a8c1e1f5a4b1954cdcd240fcd09eb003 Mon Sep 17 00:00:00 2001 From: Will Lillis Date: Tue, 30 Jun 2026 00:24:11 -0400 Subject: [PATCH] docs(queries): clarify behavior of first child anchor example --- docs/src/using-parsers/queries/2-operators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/using-parsers/queries/2-operators.md b/docs/src/using-parsers/queries/2-operators.md index 7a4c5bac4..23ec3652f 100644 --- a/docs/src/using-parsers/queries/2-operators.md +++ b/docs/src/using-parsers/queries/2-operators.md @@ -180,7 +180,7 @@ depending on where it's placed inside a query. When `.` is placed before the _first_ child within a parent pattern, the child will only match when it is the first named node in the parent. For example, the below pattern matches a given `array` node at most once, assigning the `@the-element` -capture to the first `identifier` node in the parent `array`: +capture to the first node in the parent `array`, only if it's an `identifier` node: ```query (array . (identifier) @the-element)