diff --git a/rustworkx-core/src/dag_algo.rs b/rustworkx-core/src/dag_algo.rs index 9023e0387..c27f7f2a6 100644 --- a/rustworkx-core/src/dag_algo.rs +++ b/rustworkx-core/src/dag_algo.rs @@ -249,8 +249,8 @@ type LongestPathResult = Result>, T)>, E>; /// # Arguments /// * `graph`: Reference to a directed graph. /// * `weight_fn` - An input callable that will be passed the `EdgeRef` for each edge in the graph. -/// The callable should return the weight of the edge as `Result`. The weight must be a type that implements -/// `Num`, `Zero`, `PartialOrd`, and `Copy`. +/// The callable should return the weight of the edge as `Result`. The weight must be a type that implements +/// `Num`, `Zero`, `PartialOrd`, and `Copy`. /// /// # Type Parameters /// * `G`: Type of the graph. Must be a directed graph. diff --git a/rustworkx-core/src/steiner_tree.rs b/rustworkx-core/src/steiner_tree.rs index ea39afea1..2815e588a 100644 --- a/rustworkx-core/src/steiner_tree.rs +++ b/rustworkx-core/src/steiner_tree.rs @@ -302,7 +302,7 @@ where /// - there is an edge `(u, v)` in the graph and path pass through this edge. /// - node `s` is the closest node to `u` among all `terminal_nodes` /// - node `t` is the closest node to `v` among all `terminal_nodes` -/// and wraps the result inside a `MetricClosureEdge` +/// and wraps the result inside a `MetricClosureEdge` /// /// For example, if all vertices are terminals, it returns the original edges of the graph. fn fast_metric_edges(