about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src/graph
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-05-17 10:29:12 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-05-17 10:29:12 +0000
commit4bbdb64016a0a7e1713d7c35b40ed931a47e4d8c (patch)
treed6007a86e9223e363d390c896c665c6a5771efed /compiler/rustc_data_structures/src/graph
parent7bd4fde684fb3ef282b83f90defbf2790034c69b (diff)
downloadrust-4bbdb64016a0a7e1713d7c35b40ed931a47e4d8c.tar.gz
rust-4bbdb64016a0a7e1713d7c35b40ed931a47e4d8c.zip
Typo.
Diffstat (limited to 'compiler/rustc_data_structures/src/graph')
-rw-r--r--compiler/rustc_data_structures/src/graph/dominators/mod.rs2
1 files changed, 1 insertions, 1 deletions
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<N: Idx>(tree: &DominatorTree<N>) -> Dominators<N> {
     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<N, std::ops::Range<u32>> =
         IndexVec::from_elem(0..0, immediate_dominators);
     for &idom in immediate_dominators.iter() {