From be71514435482ae417e34ea8ad6da4eee1e3e902 Mon Sep 17 00:00:00 2001 From: faldor20 Date: Tue, 12 Mar 2024 00:26:29 +1000 Subject: [PATCH] spelling --- crates/compiler/load_internal/src/file.rs | 2 +- crates/docs/src/lib.rs | 2 +- crates/lang_srv/src/analysis/analysed_doc.rs | 2 +- crates/lang_srv/src/analysis/completion.rs | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/compiler/load_internal/src/file.rs b/crates/compiler/load_internal/src/file.rs index 2f1b918236..7cf6fc3af3 100644 --- a/crates/compiler/load_internal/src/file.rs +++ b/crates/compiler/load_internal/src/file.rs @@ -217,7 +217,7 @@ fn start_phase<'a>( // // At the end of this loop, dep_idents contains all the information to // resolve a symbol from another module: if it's in here, that means - // we have both imported the module and the ident was exported by that mdoule. + // we have both imported the module and the ident was exported by that module. for dep_id in deps_by_name.values() { // We already verified that these are all present, // so unwrapping should always succeed here. diff --git a/crates/docs/src/lib.rs b/crates/docs/src/lib.rs index 9b64237050..88d4d5ea2e 100644 --- a/crates/docs/src/lib.rs +++ b/crates/docs/src/lib.rs @@ -4,7 +4,7 @@ extern crate pulldown_cmark; extern crate roc_load; use bumpalo::Bump; use roc_can::scope::Scope; -use roc_collections::{VecSet}; +use roc_collections::VecSet; use roc_load::docs::{DocEntry, TypeAnnotation}; use roc_load::docs::{ModuleDocumentation, RecordField}; use roc_load::{ExecutionMode, LoadConfig, LoadedModule, LoadingProblem, Threading}; diff --git a/crates/lang_srv/src/analysis/analysed_doc.rs b/crates/lang_srv/src/analysis/analysed_doc.rs index 6447757b5d..a8af778fa3 100644 --- a/crates/lang_srv/src/analysis/analysed_doc.rs +++ b/crates/lang_srv/src/analysis/analysed_doc.rs @@ -246,7 +246,7 @@ impl AnalyzedDocument { let is_field_or_module_completion = symbol_prefix.contains('.'); if is_field_or_module_completion { - //if the second last section is capitalised we know we are completing a module of an import of a module eg: My.Module.function + //if the second last section is capitalized we know we are completing a module of an import of a module eg: My.Module.function let is_module_completion = symbol_prefix .split('.') .nth_back(1) diff --git a/crates/lang_srv/src/analysis/completion.rs b/crates/lang_srv/src/analysis/completion.rs index 5c043418f1..80fa255167 100644 --- a/crates/lang_srv/src/analysis/completion.rs +++ b/crates/lang_srv/src/analysis/completion.rs @@ -129,7 +129,7 @@ fn get_module_exposed_completion( .collect::>() } -///Efficently walks the list of docs collecting the docs for completions as we go. Should be faster than re-walking for every completion +///Efficiently walks the list of docs collecting the docs for completions as we go. Should be faster than re-walking for every completion fn get_completion_docs( completions: &[(Symbol, Variable)], docs: &ModuleDocumentation, @@ -345,7 +345,7 @@ pub fn field_completion( variable_name, field, middle_fields ); - //We get completetions here, but all we really want is the info about the variable that is the first part of our record completion. + //We get completions here, but all we really want is the info about the variable that is the first part of our record completion. //We are completing the full name of the variable so we should only have one match let completion = get_completions(position, declarations, variable_name, interns) .into_iter()