diff --git a/src/librustc_data_structures/graph/scc/mod.rs b/src/librustc_data_structures/graph/scc/mod.rs index 8976e5357816..a989a5401022 100644 --- a/src/librustc_data_structures/graph/scc/mod.rs +++ b/src/librustc_data_structures/graph/scc/mod.rs @@ -54,7 +54,7 @@ impl Sccs { 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 { (0 .. self.scc_data.len()).map(S::new) }