Fix docs in testing helper assert_valid_path

This commit is contained in:
2026-10-21 22:03:40 +02:00
parent 32fae0b24c
commit baa6775156
+2 -2
View File
@@ -320,8 +320,8 @@ pub fn assert_standard_unweighted_predecessors_v0<V: Debug + Copy + PartialEq>(
/// Asserts that the path given as `path_option` is a valid path in `graph` /// Asserts that the path given as `path_option` is a valid path in `graph`
/// ///
/// Walks the path and asserts that it is `Some`, that it is empty if and only if /// Walks the path and asserts that it is `Some`, that it is empty if and only if
/// `source == target`, that its edges are pairwise incident in the order given, and that it starts /// `source == target` for any `target` in `targets`, that its edges are pairwise incident in the
/// at `source` and ends at `target`. /// order given, and that it starts at `source` and ends at any `target` in `targets`.
pub fn assert_valid_path<G: GraphTopology>( pub fn assert_valid_path<G: GraphTopology>(
graph: &G, graph: &G,
path_option: Option<Vec<G::Edge>>, path_option: Option<Vec<G::Edge>>,