diff --git a/R/visit.R b/R/visit.R index 5bbc619..7c1eb37 100644 --- a/R/visit.R +++ b/R/visit.R @@ -1,7 +1,7 @@ #' Visits the set of nodes and all of their children, invoking the callback for each visited node #' #' @param nodes The list or array of nodes to visit -#' @param callback The callback function to invoke for each node. The callback should return TRUE to continue visiting the children of the node, or FALSE to stop visiting the children of the node. +#' @param callback The callback function to invoke for each node. The callback should return FALSE to stop visiting the children of the node, or anything else to continue. #' #' @export visit_nodes <- function(nodes, callback) { @@ -15,7 +15,7 @@ visit_nodes <- function(nodes, callback) { #' Visits the given node and all of their children, invoking the callback for each visited node #' #' @param node The node to visit -#' @param callback The callback function to invoke for each node. The callback should return TRUE to continue visiting the children of the node, or FALSE to stop visiting the children of the node. +#' @param callback The callback function to invoke for each node. The callback should return FALSE to stop visiting the children of the node, or anything else to continue. #' #' @export visit_node <- function(node, callback) { diff --git a/man/visit_node.Rd b/man/visit_node.Rd index 298f7ce..eb15cc5 100644 --- a/man/visit_node.Rd +++ b/man/visit_node.Rd @@ -9,7 +9,7 @@ visit_node(node, callback) \arguments{ \item{node}{The node to visit} -\item{callback}{The callback function to invoke for each node. The callback should return TRUE to continue visiting the children of the node, or FALSE to stop visiting the children of the node.} +\item{callback}{The callback function to invoke for each node. The callback should return FALSE to stop visiting the children of the node, or anything else to continue.} } \description{ Visits the given node and all of their children, invoking the callback for each visited node diff --git a/man/visit_nodes.Rd b/man/visit_nodes.Rd index 7e6dfa6..edf553e 100644 --- a/man/visit_nodes.Rd +++ b/man/visit_nodes.Rd @@ -9,7 +9,7 @@ visit_nodes(nodes, callback) \arguments{ \item{nodes}{The list or array of nodes to visit} -\item{callback}{The callback function to invoke for each node. The callback should return TRUE to continue visiting the children of the node, or FALSE to stop visiting the children of the node.} +\item{callback}{The callback function to invoke for each node. The callback should return FALSE to stop visiting the children of the node, or anything else to continue.} } \description{ Visits the set of nodes and all of their children, invoking the callback for each visited node