Skip to content

Commit

Permalink
FIxing div impl
Browse files Browse the repository at this point in the history
  • Loading branch information
coreylowman committed Jun 23, 2023
1 parent c6ba310 commit 22b4a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shapes/shape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ impl<const N: usize> core::ops::Div<Const<N>> for usize {
impl<const N: usize> core::ops::Div<usize> for Const<N> {
type Output = usize;
fn div(self, rhs: usize) -> Self::Output {
N * rhs.size()
N / rhs.size()
}
}

Expand Down

0 comments on commit 22b4a6a

Please sign in to comment.