diff --git a/cspell.json b/cspell.json index c2ef332c6aff..40e200a3aa00 100644 --- a/cspell.json +++ b/cspell.json @@ -9,7 +9,7 @@ "anytype", "archiver", "argjson", - "assignement", + "assignment", "asyncify", "auditability", "authwit", diff --git a/noir/noir-repo/test_programs/compile_failure/primary_attribute_struct/src/main.nr b/noir/noir-repo/test_programs/compile_failure/primary_attribute_struct/src/main.nr index 8922ef60091c..be443e1c7ab4 100644 --- a/noir/noir-repo/test_programs/compile_failure/primary_attribute_struct/src/main.nr +++ b/noir/noir-repo/test_programs/compile_failure/primary_attribute_struct/src/main.nr @@ -1,4 +1,4 @@ -// An primary attribute should not be able to be added to a struct defintion +// An primary attribute should not be able to be added to a struct definition #[oracle(some_oracle)] struct SomeStruct{ x: Field, diff --git a/noir/noir-repo/test_programs/compile_success_empty/trait_method_mut_self/src/main.nr b/noir/noir-repo/test_programs/compile_success_empty/trait_method_mut_self/src/main.nr index aa0baab7f895..6497eafac232 100644 --- a/noir/noir-repo/test_programs/compile_success_empty/trait_method_mut_self/src/main.nr +++ b/noir/noir-repo/test_programs/compile_success_empty/trait_method_mut_self/src/main.nr @@ -71,7 +71,7 @@ where { // Check that we can call a trait method instead of a trait implementation // TODO: Need to remove the need for this type annotation - // TODO: Curently, without the annotation we will get `Expression type is ambiguous` when trying to use the `hasher` + // TODO: Currently, without the annotation we will get `Expression type is ambiguous` when trying to use the `hasher` let mut hasher: H = H::default(); // Regression that the object is converted to a mutable reference type `&mut _`. // Otherwise will see `Expected type &mut _, found type H`. diff --git a/noir/noir-repo/test_programs/execution_success/brillig_conditional/src/main.nr b/noir/noir-repo/test_programs/execution_success/brillig_conditional/src/main.nr index 024ee52d5af0..0261ebe9cd8c 100644 --- a/noir/noir-repo/test_programs/execution_success/brillig_conditional/src/main.nr +++ b/noir/noir-repo/test_programs/execution_success/brillig_conditional/src/main.nr @@ -1,6 +1,6 @@ // Tests a very simple program. // -// The features being tested is basic conditonal on brillig +// The features being tested is basic conditional on brillig fn main(x: Field) { /// Safety: testing context unsafe { diff --git a/noir/noir-repo/test_programs/noir_test_success/regression_4561/src/main.nr b/noir/noir-repo/test_programs/noir_test_success/regression_4561/src/main.nr index 6a8b4bd61fb0..da89135e5313 100644 --- a/noir/noir-repo/test_programs/noir_test_success/regression_4561/src/main.nr +++ b/noir/noir-repo/test_programs/noir_test_success/regression_4561/src/main.nr @@ -57,7 +57,7 @@ struct TestTypeFoo { } #[test] -unconstrained fn complexe_struct_return() { +unconstrained fn complex_struct_return() { OracleMock::mock("foo_return").returns( ( 0, [1, 2, 3, 4, 5, 6], 7, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], [1, 2, 3, 4, 5, 6] diff --git a/noir/noir-repo/tooling/lsp/src/requests/completion.rs b/noir/noir-repo/tooling/lsp/src/requests/completion.rs index b464c3e7adce..46a0cbd651c8 100644 --- a/noir/noir-repo/tooling/lsp/src/requests/completion.rs +++ b/noir/noir-repo/tooling/lsp/src/requests/completion.rs @@ -1133,7 +1133,7 @@ impl<'a> NodeFinder<'a> { /// Try to suggest the name of a module to declare based on which /// files exist in the filesystem, excluding modules that are already declared. - fn complete_module_delcaration(&mut self, module: &ModuleDeclaration) -> Option<()> { + fn complete_module_declaration(&mut self, module: &ModuleDeclaration) -> Option<()> { let filename = self.files.get_absolute_name(self.file).ok()?.into_path_buf(); let is_main_lib_or_mod = filename.ends_with("main.nr") @@ -1869,7 +1869,7 @@ impl<'a> Visitor for NodeFinder<'a> { return; } - self.complete_module_delcaration(module); + self.complete_module_declaration(module); } } diff --git a/noir/noir-repo/tooling/lsp/src/requests/completion/tests.rs b/noir/noir-repo/tooling/lsp/src/requests/completion/tests.rs index f670f26ffeb1..eb513f37daf8 100644 --- a/noir/noir-repo/tooling/lsp/src/requests/completion/tests.rs +++ b/noir/noir-repo/tooling/lsp/src/requests/completion/tests.rs @@ -2345,7 +2345,7 @@ fn main() { } #[test] - async fn test_auto_import_suggests_private_function_if_visibile() { + async fn test_auto_import_suggests_private_function_if_visible() { let src = r#" mod foo { fn qux() { diff --git a/noir/noir-repo/tooling/lsp/src/requests/references.rs b/noir/noir-repo/tooling/lsp/src/requests/references.rs index 6d3f92447cba..3b4ef12b5b74 100644 --- a/noir/noir-repo/tooling/lsp/src/requests/references.rs +++ b/noir/noir-repo/tooling/lsp/src/requests/references.rs @@ -99,7 +99,7 @@ mod references_tests { // See https://github.com/noir-lang/noir/issues/5460 #[ignore] #[test] - async fn test_on_references_request_works_accross_workspace_packages() { + async fn test_on_references_request_works_across_workspace_packages() { let (mut state, noir_text_document) = test_utils::init_lsp_server("workspace").await; // noir_text_document is always `src/main.nr` in the workspace directory, so let's go to the workspace dir diff --git a/noir/noir-repo/tooling/nargo_fmt/tests/expected/expr.nr b/noir/noir-repo/tooling/nargo_fmt/tests/expected/expr.nr index 9bee940f9006..212db1207303 100644 --- a/noir/noir-repo/tooling/nargo_fmt/tests/expected/expr.nr +++ b/noir/noir-repo/tooling/nargo_fmt/tests/expected/expr.nr @@ -56,7 +56,7 @@ fn only_comments() { // Keep this here } -fn commnet() { +fn comment() { 1 // } diff --git a/noir/noir-repo/tooling/nargo_fmt/tests/input/expr.nr b/noir/noir-repo/tooling/nargo_fmt/tests/input/expr.nr index 9ecefad7dfd8..7ce9d86e5476 100644 --- a/noir/noir-repo/tooling/nargo_fmt/tests/input/expr.nr +++ b/noir/noir-repo/tooling/nargo_fmt/tests/input/expr.nr @@ -58,7 +58,7 @@ fn only_comments() { // Keep this here } -fn commnet() { +fn comment() { 1 // } @@ -150,4 +150,4 @@ fn if_if() { (if cond { some(); } else { none(); }) .bar() .baz(); -} \ No newline at end of file +}