]> git.lizzy.rs Git - rust.git/commitdiff
nit: clarify "keep it around" comment
authorNiko Matsakis <niko@alum.mit.edu>
Fri, 13 Jul 2018 05:18:35 +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 64471230f55add745fe94a1b814a0459c99c7ae2..82755ef5ce5635d05ff027610dc99bb1fe49cd14 100644 (file)
@@ -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>,