Skip to content

Commit 666c365

Browse files
committed
nit: s/successor/successors/
1 parent 48c4140 commit 666c365

File tree

1 file changed

+2
-2
lines changed
  • src/librustc_data_structures/graph/scc

1 file changed

+2
-2
lines changed

src/librustc_data_structures/graph/scc/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl<N: Idx, S: Idx> Sccs<N, S> {
6464
self.scc_indices[r]
6565
}
6666

67-
/// Returns the successor of the given SCC.
67+
/// Returns the successors of the given SCC.
6868
pub fn successors(&self, scc: S) -> &[S] {
6969
self.scc_data.successors(scc)
7070
}
@@ -76,7 +76,7 @@ impl<S: Idx> SccData<S> {
7676
self.ranges.len()
7777
}
7878

79-
/// Returns the successor of the given SCC.
79+
/// Returns the successors of the given SCC.
8080
fn successors(&self, scc: S) -> &[S] {
8181
// Annoyingly, `range` does not implement `Copy`, so we have
8282
// to do `range.start..range.end`:

0 commit comments

Comments
 (0)