Skip to content

Commit

Permalink
chore: redo typo PR by maximevtush (#7425)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench authored Feb 18, 2025
1 parent 64890c0 commit 1dc6a8b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion compiler/noirc_frontend/src/hir/comptime/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ impl<'a> From<&'a InterpreterError> for CustomDiagnostic {
}
InterpreterError::GenericNameShouldBeAnIdent { name, location } => {
let msg =
"Generic name needs to be a valid identifer (one word beginning with a letter)"
"Generic name needs to be a valid identifier (one word beginning with a letter)"
.to_string();
let secondary = format!("`{name}` is not a valid identifier");
CustomDiagnostic::simple_error(msg, secondary, location.span)
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
4 changes: 2 additions & 2 deletions 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
2 changes: 1 addition & 1 deletion tooling/lsp/src/requests/completion/tests.rs
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

0 comments on commit 1dc6a8b

Please sign in to comment.