docs: fix typo

This commit is contained in:
Giftpflanze 2024-03-12 07:29:55 +01:00 committed by GitHub
parent 5c2f80ebb0
commit 647d2e5c37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -620,7 +620,7 @@ You may have noticed in the above examples that some of the grammar rule name li
### Using Fields
Often, it's easier to analyze a syntax nodes if you can refer to its children by *name* instead of by their position in an ordered list. Tree-sitter grammars support this using the `field` function. This function allows you to assign unique names to some or all of a node's children:
Often, it's easier to analyze a syntax node if you can refer to its children by *name* instead of by their position in an ordered list. Tree-sitter grammars support this using the `field` function. This function allows you to assign unique names to some or all of a node's children:
```js
function_definition: $ => seq(