Skip to content

Commit

Permalink
nit: fix all_sccs comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Jul 13, 2018
1 parent 0472da3 commit eed2c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_data_structures/graph/scc/mod.rs
Expand Up @@ -54,7 +54,7 @@ impl<N: Idx, S: Idx> Sccs<N, S> {
self.scc_data.len()
}

/// Returns the number of SCCs in the graph.
/// Returns an iterator over the SCCs in the graph.
pub fn all_sccs(&self) -> impl Iterator<Item = S> {
(0 .. self.scc_data.len()).map(S::new)
}
Expand Down

0 comments on commit eed2c09

Please sign in to comment.