diff --git a/compiler/rustc_data_structures/src/graph/dominators/mod.rs b/compiler/rustc_data_structures/src/graph/dominators/mod.rs index 5c5c803cc06..2112b7bcbe3 100644 --- a/compiler/rustc_data_structures/src/graph/dominators/mod.rs +++ b/compiler/rustc_data_structures/src/graph/dominators/mod.rs @@ -398,7 +398,7 @@ pub fn dominators(tree: &DominatorTree) -> Dominators { let DominatorTree { start_node, ref immediate_dominators, post_order_rank: _ } = *tree; // Transpose the dominator tree edges, so that child nodes of vertex v are stored in - // node[edges[v].start..edges[y].end]. + // node[edges[v].start..edges[v].end]. let mut edges: IndexVec> = IndexVec::from_elem(0..0, immediate_dominators); for &idom in immediate_dominators.iter() {