Skip to content

Commit 03f5aad

Browse files
committed
fixing comment - vscode seems to auto inject an import?
1 parent 9440d21 commit 03f5aad

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/lexical-utils/src/index.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export function $dfs(
187187

188188
/**
189189
* A function which will return exactly the reversed order of $dfs. That means that the tree is traversed
190-
* from left to right, starting at the leaf and working towards the root.
190+
* from right to left, starting at the leaf and working towards the root.
191191
* @param startNode - The node to start the search. If omitted, it will start at the last leaf node in the tree.
192192
* @param endNode - The node to end the search. If omitted, it will work backwards all the way to the root node
193193
* @returns An array of objects of all the nodes found by the search, including their depth into the tree.
@@ -840,8 +840,7 @@ function $unwrapAndFilterDescendantsImpl(
840840
*
841841
* This function is read-only and performs no mutation operations, which makes
842842
* it suitable for import and export purposes but likely not for any in-place
843-
* mutation. You shimport { $getRoot } from 'lexical';
844-
ould use {@link $unwrapAndFilterDescendants} for in-place
843+
* mutation. You should use {@link $unwrapAndFilterDescendants} for in-place
845844
* mutations such as node transforms.
846845
*
847846
* @param children The children to traverse

0 commit comments

Comments
 (0)