Skip to content

Commit

Permalink
nit: s/successor/successors/
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Jul 13, 2018
1 parent 48c4140 commit 666c365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc_data_structures/graph/scc/mod.rs
Expand Up @@ -64,7 +64,7 @@ impl<N: Idx, S: Idx> Sccs<N, S> {
self.scc_indices[r]
}

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

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

0 comments on commit 666c365

Please sign in to comment.