nit: fix `all_sccs` comment

This commit is contained in:
Niko Matsakis 2018-07-13 01:28:06 -04:00
parent 0472da3ed6
commit eed2c09a64
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}