about summary refs log tree commit diff
diff options
context:
space:
mode:
authorroife <roifewu@gmail.com>2024-03-15 21:14:17 +0800
committerroife <roifewu@gmail.com>2024-03-15 21:14:17 +0800
commit10aa999c743038f26c14939749c72e73e22f7e49 (patch)
treea82395e8c89c4facccff0ca4bed69fcf11ecd431
parentd40c0fe48b1d0947db5b2ea18df92a52db068319 (diff)
downloadrust-10aa999c743038f26c14939749c72e73e22f7e49.tar.gz
rust-10aa999c743038f26c14939749c72e73e22f7e49.zip
fix: typo
-rw-r--r--crates/ide-assists/src/handlers/extract_module.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ide-assists/src/handlers/extract_module.rs b/crates/ide-assists/src/handlers/extract_module.rs
index c6a1bd0838f..42f935651cf 100644
--- a/crates/ide-assists/src/handlers/extract_module.rs
+++ b/crates/ide-assists/src/handlers/extract_module.rs
@@ -467,9 +467,9 @@ impl Module {
                 .filter(|x| find_node_at_range::<ast::Use>(file.syntax(), x.range).is_none())
                 .filter_map(|x| find_node_at_range::<ast::Path>(file.syntax(), x.range))
             {
-                let in_selectin = selection_range.contains_range(x.syntax().text_range());
-                uses_exist_in_sel |= in_selectin;
-                uses_exist_out_sel |= !in_selectin;
+                let in_selection = selection_range.contains_range(x.syntax().text_range());
+                uses_exist_in_sel |= in_selection;
+                uses_exist_out_sel |= !in_selection;
 
                 if uses_exist_in_sel && uses_exist_out_sel {
                     break 'outside;