Skip to content

Commit aced31b

Browse files
committed
Fixed tests
1 parent ead0fdf commit aced31b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

algo/src/visits/breadth_first/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ pub enum EventNoPred {
121121
/// forward arc, or a cross arc.
122122
///
123123
/// Note however that in parallel contexts it might happen that callback
124-
/// with event [`Unknown`](`EventNoPred::Unknown`) has not been called yet
124+
/// with event [`Unknown`](`EventNoPred::Visit`) has not been called yet
125125
/// by the thread who discovered the node.
126126
Revisit {
127127
/// The current node.

algo/src/visits/breadth_first/par_fair.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ use webgraph::{traits::RandomAccessGraph, utils::Granularity};
7575
/// [0],
7676
/// |event| {
7777
/// // Set distance from 0
78-
/// if let EventNoPred::Unknown { node, distance, ..} = event {
78+
/// if let EventNoPred::Visit { node, distance, ..} = event {
7979
/// // There will be exactly one set for each node
8080
/// unsafe { d_sync[node].set(distance) };
8181
/// }

algo/src/visits/breadth_first/seq.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ use webgraph::traits::{RandomAccessGraph, RandomAccessLabeling};
4646
/// [0],
4747
/// |event| {
4848
/// // Set distance from 0
49-
/// if let breadth_first::EventPred::Unknown { node, distance, .. } = event {
49+
/// if let breadth_first::EventPred::Visit { node, distance, .. } = event {
5050
/// d[node] = distance;
5151
/// }
5252
/// Continue(())

0 commit comments

Comments
 (0)