about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2018-07-13 01:18:35 -0400
committerNiko Matsakis <niko@alum.mit.edu>2018-07-13 01:29:10 -0400
commit9d2999461fbc07a7059363aacf2b0bcf615d322b (patch)
tree6cae849b691689dc8ea4647f4945c7cc68531d10 /src
parent666c365db338c5f09edc9b0a2623c651a0233f21 (diff)
downloadrust-9d2999461fbc07a7059363aacf2b0bcf615d322b.tar.gz
rust-9d2999461fbc07a7059363aacf2b0bcf615d322b.zip
nit: clarify "keep it around" comment
Diffstat (limited to 'src')
-rw-r--r--src/librustc_data_structures/graph/scc/mod.rs4
1 files 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 64471230f55..82755ef5ce5 100644
--- a/src/librustc_data_structures/graph/scc/mod.rs
+++ b/src/librustc_data_structures/graph/scc/mod.rs
@@ -122,8 +122,8 @@ struct SccsConstruction<'c, G: DirectedGraph + WithNumNodes + WithSuccessors + '
 
     /// A set used to strip duplicates. As we accumulate successors
     /// into the successors_stack, we sometimes get duplicate entries.
-    /// We use this set to remove those -- we keep it around between
-    /// successors to amortize memory allocation costs.
+    /// We use this set to remove those -- we also keep its storage
+    /// around between successors to amortize memory allocation costs.
     duplicate_set: FxHashSet<S>,
 
     scc_data: SccData<S>,