panic case is non utf-8

This commit is contained in:
Meltinglava 2018-07-18 12:25:03 +02:00
parent 444f5fbc23
commit 269c141e46
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ mod float_impls {
pub fn pow<T: Clone + Zero + One + Mul<T, Output = T>>(mut base: T, mut exp: usize) -> T {
if exp == 0 {
return if base.is_zero() {
panic!("0⁰ is undefined")
panic!("pow(0, 0) is undefined")
} else {
T::one()
};