Skip to content

Commit

Permalink
docs: Mismatch in turbofish operator example
Browse files Browse the repository at this point in the history
  • Loading branch information
e1Ru1o committed Jan 20, 2025
1 parent 5351aa3 commit 93c71fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/noir/concepts/generics.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ fn example() {
// there is no matching impl for `u32: MyTrait`.
//
// Substituting the `10` on the left hand side of this assert
// with `10 as u32` would also fail with a type mismatch as we
// with `10 as u32` would fail with a type mismatch as we
// are expecting a `Field` from the right hand side.
assert(10 as u32 == foo.generic_method::<Field>());
assert(10 == foo.generic_method::<Field>());
}
```

Expand Down

0 comments on commit 93c71fa

Please sign in to comment.