File tree 1 file changed +2
-3
lines changed
packages/lexical-utils/src
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ export function $dfs(
187
187
188
188
/**
189
189
* 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.
191
191
* @param startNode - The node to start the search. If omitted, it will start at the last leaf node in the tree.
192
192
* @param endNode - The node to end the search. If omitted, it will work backwards all the way to the root node
193
193
* @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(
840
840
*
841
841
* This function is read-only and performs no mutation operations, which makes
842
842
* 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
845
844
* mutations such as node transforms.
846
845
*
847
846
* @param children The children to traverse
You can’t perform that action at this time.
0 commit comments