Skip to content

Commit 9d29994

Browse files
committed
nit: clarify "keep it around" comment
1 parent 666c365 commit 9d29994

File tree

1 file changed

+2
-2
lines changed
  • src/librustc_data_structures/graph/scc

1 file changed

+2
-2
lines changed

src/librustc_data_structures/graph/scc/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ struct SccsConstruction<'c, G: DirectedGraph + WithNumNodes + WithSuccessors + '
122122

123123
/// A set used to strip duplicates. As we accumulate successors
124124
/// into the successors_stack, we sometimes get duplicate entries.
125-
/// We use this set to remove those -- we keep it around between
126-
/// successors to amortize memory allocation costs.
125+
/// We use this set to remove those -- we also keep its storage
126+
/// around between successors to amortize memory allocation costs.
127127
duplicate_set: FxHashSet<S>,
128128

129129
scc_data: SccData<S>,

0 commit comments

Comments
 (0)