]> git.lizzy.rs Git - rust.git/commitdiff
nit: s/successor/successors/
authorNiko Matsakis <niko@alum.mit.edu>
Fri, 13 Jul 2018 05:18:00 +0000 (01:18 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Fri, 13 Jul 2018 05:29:10 +0000 (01:29 -0400)
src/librustc_data_structures/graph/scc/mod.rs

index e7a84e4779754c3404d62e27ad2219101125d4d1..64471230f55add745fe94a1b814a0459c99c7ae2 100644 (file)
@@ -64,7 +64,7 @@ pub fn scc(&self, r: 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)
     }
@@ -76,7 +76,7 @@ fn len(&self) -> usize {
         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`: