Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"anytype",
"archiver",
"argjson",
"assignement",
"assignment",
"asyncify",
"auditability",
"authwit",
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions noir/noir-repo/tooling/lsp/src/requests/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -1869,7 +1869,7 @@ impl<'a> Visitor for NodeFinder<'a> {
return;
}

self.complete_module_delcaration(module);
self.complete_module_declaration(module);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion noir/noir-repo/tooling/lsp/src/requests/references.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion noir/noir-repo/tooling/nargo_fmt/tests/expected/expr.nr
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn only_comments() {
// Keep this here
}

fn commnet() {
fn comment() {
1
//
}
Expand Down
4 changes: 2 additions & 2 deletions noir/noir-repo/tooling/nargo_fmt/tests/input/expr.nr
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fn only_comments() {
// Keep this here
}

fn commnet() {
fn comment() {
1
//
}
Expand Down Expand Up @@ -150,4 +150,4 @@ fn if_if() {
(if cond { some(); } else { none(); })
.bar()
.baz();
}
}
Loading