Add BREAK too, and improve the comments

This commit is contained in:
Scott McMurray 2020-09-04 16:28:23 -07:00
parent fac272688e
commit 59e37332b0
3 changed files with 44 additions and 8 deletions

View file

@ -286,7 +286,7 @@ where
prior_status: Option<NodeStatus>,
) -> ControlFlow<Self::BreakVal> {
match prior_status {
Some(NodeStatus::Visited) => ControlFlow::Break(()),
Some(NodeStatus::Visited) => ControlFlow::BREAK,
_ => ControlFlow::CONTINUE,
}
}