Skip to content

Commit 45b76ba

Browse files
authored
fix: fix example function params order (#897)
1 parent b84d28b commit 45b76ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/guide/api-usage/js-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ A `Matcher` can be one of the three types: `string`, `number` or `object`.
118118

119119
* `string` is parsed as a [pattern](/guide/pattern-syntax.html). e.g. `'console.log($A)'`
120120

121-
* `number` is interpreted as the node's kind. In tree-sitter, an AST node's type is represented by a number called kind id. Different syntax node has different kind ids. You can convert a kind name like `function` to the numeric representation by calling the `kind` function. e.g. `kind('function', Lang.JavaScript)`.
121+
* `number` is interpreted as the node's kind. In tree-sitter, an AST node's type is represented by a number called kind id. Different syntax node has different kind ids. You can convert a kind name like `function` to the numeric representation by calling the `kind` function. e.g. `kind(Lang.JavaScript, 'function')`.
122122

123123
* A `NapiConfig` has a similar type of [config object](/reference/yaml.html). See details below.
124124

0 commit comments

Comments
 (0)