about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src/graph
diff options
context:
space:
mode:
authorAlexander Cyon <alex.cyon@gmail.com>2024-09-02 07:42:38 +0200
committerAlexander Cyon <alex.cyon@gmail.com>2024-09-02 07:42:38 +0200
commitac69544a175d692dd623fb854261ca64b1b9b802 (patch)
tree8b33a587005aa8fec99e4d32a4cebb20496ad6a0 /compiler/rustc_data_structures/src/graph
parent78d5c04d9c64a57134e6bd39090847351379e6ae (diff)
downloadrust-ac69544a175d692dd623fb854261ca64b1b9b802.tar.gz
rust-ac69544a175d692dd623fb854261ca64b1b9b802.zip
chore: Fix typos in 'compiler' (batch 1)
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;