Skip to content

Commit

Permalink
Improve assert message
Browse files Browse the repository at this point in the history
  • Loading branch information
jdahlstrom committed Dec 8, 2024
1 parent 4f05fda commit 12920a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/math/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ where
{
#[inline]
fn div_assign(&mut self, rhs: f32) {
debug_assert!(f32::abs(rhs) > 1e-7);
debug_assert!(f32::abs(rhs) > 1e-7, "divisor {rhs} < epsilon");
*self = Linear::mul(&*self, rhs.recip());
}
}
Expand Down

0 comments on commit 12920a8

Please sign in to comment.