Fixed float.rs

This commit is contained in:
YakoYakoYokuYoku 2019-02-11 16:19:54 -03:00 committed by GitHub
parent 88029f5786
commit f06b736e02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1842,7 +1842,7 @@ pub trait Float: Num + Copy + NumCast + PartialOrd + Neg<Output = Self> {
if self >= Self::zero() {
Self::zero()
} else {
Self::from(f64::consts::PI)
Self::from(f64::consts::PI).unwrap()
}
}
}