Skip to content

Commit c8bbeed

Browse files
committed
Fix docs
1 parent 5eeb002 commit c8bbeed

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ filtering nodes. Optionally in reverse.
4646

4747
###### Parameters
4848

49-
* `node` ([`Node`][node])
50-
Node to search
49+
* `tree` ([`Node`][node])
50+
Tree to traverse
5151
* `test` ([`Test`][is], optional)
52-
Node type or other [`is`][is]-compatible test
52+
[`is`][is]-compatible test (such as a node type)
5353
* `visitor` ([Function][visitor])
54-
Visitor invoked when a node is found that passes `test`
54+
Function invoked when a node is found that passes `test`
5555
* `reverse` (`boolean`, default: `false`)
5656
— When falsey, checking starts at the first child and continues
5757
through to later children. When truthy, this is reversed.
@@ -67,7 +67,7 @@ removing [**children**][child] before `index`, you should return a new `index`
6767
(`number`) from `visitor` to specify the next sibling to visit. Replacing
6868
`node` itself still causes its descendants to be visited. Adding or removing
6969
nodes after `index` is handled as expected without needing to return a new
70-
`index`. Remove the `children` property on `parent` still results in them
70+
`index`. Removing the `children` property on `parent` still results in them
7171
being traversed.
7272

7373
###### Parameters

0 commit comments

Comments
 (0)