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 docs/docs/noir/concepts/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub(crate) fn foo() {} //foo can only be called within its crate
```

All parameters in a function must have a type and all types are known at compile time. The parameter
is pre-pended with a colon and the parameter type. Multiple parameters are separated using a comma.
is prepended with a colon and the parameter type. Multiple parameters are separated using a comma.

```rust
fn foo(x : Field, y : Field){}
Expand Down
2 changes: 1 addition & 1 deletion tooling/lsp/src/requests/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ impl<'a> NodeFinder<'a> {
fn resolve_path(&self, segments: Vec<Ident>) -> Option<ModuleDefId> {
let last_segment = segments.last().unwrap().clone();

// If we can't resolve a path trough lookup, let's see if the last segment is bound to a type
// If we can't resolve a path through lookup, let's see if the last segment is bound to a type
let location = Location::new(last_segment.span(), self.file);
if let Some(reference_id) = self.interner.find_referenced(location) {
if let Some(id) = module_def_id_from_reference_id(reference_id) {
Expand Down
2 changes: 1 addition & 1 deletion tooling/ssa_fuzzer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ This command creates two new SSA blocks.
b1 b2
```
Inserts chosen instruction blocks into b1 and b2.
Then terminates b0 with jmp_if_else and switch context to b1. Condtion for jmp_if_else is the last defined boolean variable in the block.
Then terminates b0 with jmp_if_else and switch context to b1. Condition for jmp_if_else is the last defined boolean variable in the block.
```
b0
then ↙ ↘ else
Expand Down
Loading