Skip to content

Commit 61f2d19

Browse files
authoredJan 27, 2022
Update breadthFirstSearch.js (trekhleb#666)
fix comment
1 parent 945e7c3 commit 61f2d19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/algorithms/tree/breadth-first-search/breadthFirstSearch.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import Queue from '../../../data-structures/queue/Queue';
33
/**
44
* @typedef {Object} Callbacks
55
* @property {function(node: BinaryTreeNode, child: BinaryTreeNode): boolean} allowTraversal -
6-
* Determines whether DFS should traverse from the node to its child.
7-
* @property {function(node: BinaryTreeNode)} enterNode - Called when DFS enters the node.
8-
* @property {function(node: BinaryTreeNode)} leaveNode - Called when DFS leaves the node.
6+
* Determines whether BFS should traverse from the node to its child.
7+
* @property {function(node: BinaryTreeNode)} enterNode - Called when BFS enters the node.
8+
* @property {function(node: BinaryTreeNode)} leaveNode - Called when BFS leaves the node.
99
*/
1010

1111
/**

0 commit comments

Comments
 (0)
Please sign in to comment.