Skip to content

Commit 56bb933

Browse files
hkBstmatthewjasper
andauthored
fix typo of f64 to f32
Co-authored-by: matthewjasper <[email protected]>
1 parent 2a9fbd2 commit 56bb933

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/f32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ impl f32 {
308308
/// let abs_difference = (x.powi(2) - (x * x)).abs();
309309
/// assert!(abs_difference <= f32::EPSILON);
310310
///
311-
/// assert_eq!(f64::powi(f32::NAN, 0), 1.0);
311+
/// assert_eq!(f32::powi(f32::NAN, 0), 1.0);
312312
/// ```
313313
#[rustc_allow_incoherent_impl]
314314
#[must_use = "method returns a new number and does not mutate the original value"]

0 commit comments

Comments
 (0)