Skip to content

Commit

Permalink
chore: minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ariostas committed Apr 20, 2024
1 parent 5679bdb commit 1340719
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/polynomial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ where

/// Find the minimum degree of the polynomial.
pub fn min_degree(&self, poly_props: &PolynomialProperties<T>) -> u32 {
if let Some(idx) = self.nonzero.iter().next() {
if let Some(idx) = self.nonzero.first() {
return poly_props.semigroup.degrees[*idx as usize];
}
poly_props.semigroup.max_degree + 1
Expand Down
2 changes: 1 addition & 1 deletion src/semigroup/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use core::fmt;

/// An error structure for non-positive degrees of non-identity elements.
/// An error structure for semigroup errors.
#[derive(Debug, Clone, PartialEq)]
pub enum SemigroupError {
NonPositiveDegreeError,
Expand Down

0 comments on commit 1340719

Please sign in to comment.