about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src/graph
diff options
context:
space:
mode:
authorThe Miri Cronjob Bot <miri@cron.bot>2024-09-06 05:09:32 +0000
committerThe Miri Cronjob Bot <miri@cron.bot>2024-09-06 05:09:32 +0000
commit2fccb4b358e06c9c33d1ed18b280aa1a776c2f36 (patch)
treea327c16521758286ea353293be72e4104cba2442 /compiler/rustc_data_structures/src/graph
parent81a08bc67ab0d9186295d081e9579d8e0c2f1998 (diff)
parent54fdef7799d9ff9470bb5cabd29fde9471a99eaa (diff)
downloadrust-2fccb4b358e06c9c33d1ed18b280aa1a776c2f36.tar.gz
rust-2fccb4b358e06c9c33d1ed18b280aa1a776c2f36.zip
Merge from rustc
Diffstat (limited to 'compiler/rustc_data_structures/src/graph')
-rw-r--r--compiler/rustc_data_structures/src/graph/scc/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/src/graph/scc/mod.rs b/compiler/rustc_data_structures/src/graph/scc/mod.rs
index 2a457ffb70b..06fedef00fc 100644
--- a/compiler/rustc_data_structures/src/graph/scc/mod.rs
+++ b/compiler/rustc_data_structures/src/graph/scc/mod.rs
@@ -477,7 +477,7 @@ where
         // will know when we hit the state where previous_node == node.
         loop {
             // Back at the beginning, we can return. Note that we return the root state.
-            // This is becuse for components being explored, we would otherwise get a
+            // This is because for components being explored, we would otherwise get a
             // `node_state[n] = InCycleWith{ parent: n }` and that's wrong.
             if previous_node == node {
                 return root_state;