Skip to content

Commit

Permalink
undo pub addition to trim_zeroes
Browse files Browse the repository at this point in the history
  • Loading branch information
eightfilms committed Jul 8, 2024
1 parent 4a97c58 commit 566d23e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/polynomial/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl<F: FiniteField, const D: usize> Polynomial<Monomial, F, D> {
pub fn new(coefficients: [F; D]) -> Self { Self { coefficients, basis: Monomial } }

/// Helper method to remove leading zeros from coefficients
pub fn trim_zeros(coefficients: &mut Vec<F>) {
fn trim_zeros(coefficients: &mut Vec<F>) {
while coefficients.last().cloned() == Some(F::ZERO) {
coefficients.pop();
}
Expand Down

0 comments on commit 566d23e

Please sign in to comment.