Skip to content

Commit

Permalink
Potentially fix stdlib issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jfecher committed Feb 15, 2024
1 parent e324943 commit d8371b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions noir_stdlib/src/array.nr
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ impl<T, N> [T; N] {
pub fn len(self) -> Field {}

pub fn sort(self) -> Self where T: Ord {
self.sort_via(|a, b| a <= b)
self.sort_via(|a: T, b: T| a <= b)
}

pub fn sort_via<Env>(self, ordering: fn[Env](T, T) -> bool) -> Self {
Expand Down Expand Up @@ -125,4 +125,4 @@ unconstrained fn find_index<N>(a: [Field;N], find: Field) -> Field {
}
}
result
}
}

0 comments on commit d8371b4

Please sign in to comment.