From 61f2d192f6ff49ef8cff1049e8f5f51ea916d4fc Mon Sep 17 00:00:00 2001 From: Perry Date: Fri, 28 Jan 2022 03:53:42 +0800 Subject: [PATCH] Update breadthFirstSearch.js (#666) fix comment --- .../tree/breadth-first-search/breadthFirstSearch.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/algorithms/tree/breadth-first-search/breadthFirstSearch.js b/src/algorithms/tree/breadth-first-search/breadthFirstSearch.js index 503ec34f9..e1c7b70e1 100644 --- a/src/algorithms/tree/breadth-first-search/breadthFirstSearch.js +++ b/src/algorithms/tree/breadth-first-search/breadthFirstSearch.js @@ -3,9 +3,9 @@ import Queue from '../../../data-structures/queue/Queue'; /** * @typedef {Object} Callbacks * @property {function(node: BinaryTreeNode, child: BinaryTreeNode): boolean} allowTraversal - - * Determines whether DFS should traverse from the node to its child. - * @property {function(node: BinaryTreeNode)} enterNode - Called when DFS enters the node. - * @property {function(node: BinaryTreeNode)} leaveNode - Called when DFS leaves the node. + * Determines whether BFS should traverse from the node to its child. + * @property {function(node: BinaryTreeNode)} enterNode - Called when BFS enters the node. + * @property {function(node: BinaryTreeNode)} leaveNode - Called when BFS leaves the node. */ /**