diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2018-07-13 01:28:06 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2018-07-13 01:29:10 -0400 |
| commit | eed2c09a644b161b7a9a8e241e8090f27abc2810 (patch) | |
| tree | 99e9fe0e112c376fbc1a4e14f2db5f2baaddc790 /src/librustc_data_structures/graph/scc | |
| parent | 0472da3ed643a5957cb1dbe6b790af2528cb5511 (diff) | |
| download | rust-eed2c09a644b161b7a9a8e241e8090f27abc2810.tar.gz rust-eed2c09a644b161b7a9a8e241e8090f27abc2810.zip | |
nit: fix `all_sccs` comment
Diffstat (limited to 'src/librustc_data_structures/graph/scc')
| -rw-r--r-- | src/librustc_data_structures/graph/scc/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_data_structures/graph/scc/mod.rs b/src/librustc_data_structures/graph/scc/mod.rs index 8976e535781..a989a540102 100644 --- a/src/librustc_data_structures/graph/scc/mod.rs +++ b/src/librustc_data_structures/graph/scc/mod.rs @@ -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) } |
