From 666c365db338c5f09edc9b0a2623c651a0233f21 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Fri, 13 Jul 2018 01:18:00 -0400 Subject: [PATCH] nit: s/successor/successors/ --- src/librustc_data_structures/graph/scc/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc_data_structures/graph/scc/mod.rs b/src/librustc_data_structures/graph/scc/mod.rs index e7a84e47797..64471230f55 100644 --- a/src/librustc_data_structures/graph/scc/mod.rs +++ b/src/librustc_data_structures/graph/scc/mod.rs @@ -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`: -- 2.44.0