Skip to content

Commit

Permalink
Fix typo in docs (petgraph#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
d2weber authored and teuron committed Oct 9, 2022
1 parent dde5224 commit db1d587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graph_impl/mod.rs
Expand Up @@ -593,7 +593,7 @@ where
/// Computes in **O(e')** time, where **e'** is the number of edges
/// connected to `a` (and `b`, if the graph edges are undirected).
///
/// **Panics** if any of the nodes don't exist.
/// **Panics** if any of the nodes doesn't exist.
pub fn update_edge(&mut self, a: NodeIndex<Ix>, b: NodeIndex<Ix>, weight: E) -> EdgeIndex<Ix> {
if let Some(ix) = self.find_edge(a, b) {
if let Some(ed) = self.edge_weight_mut(ix) {
Expand Down

0 comments on commit db1d587

Please sign in to comment.