File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -467,10 +467,10 @@ impl f128 {
467
467
/// # #[cfg(not(miri))]
468
468
/// # #[cfg(target_has_reliable_f128_math)] {
469
469
///
470
- /// let f = std::f128::consts::FRAC_PI_2 ;
470
+ /// let f = std::f128::consts::FRAC_PI_4 ;
471
471
///
472
472
/// // asin(sin(pi/2))
473
- /// let abs_difference = (f.sin().asin() - std::f128::consts::FRAC_PI_2 ).abs();
473
+ /// let abs_difference = (f.sin().asin() - f ).abs();
474
474
///
475
475
/// assert!(abs_difference <= f128::EPSILON);
476
476
/// # }
Original file line number Diff line number Diff line change @@ -432,10 +432,10 @@ impl f16 {
432
432
/// # #[cfg(not(miri))]
433
433
/// # #[cfg(target_has_reliable_f16_math)] {
434
434
///
435
- /// let f = std::f16::consts::FRAC_PI_2 ;
435
+ /// let f = std::f16::consts::FRAC_PI_4 ;
436
436
///
437
437
/// // asin(sin(pi/2))
438
- /// let abs_difference = (f.sin().asin() - std::f16::consts::FRAC_PI_2 ).abs();
438
+ /// let abs_difference = (f.sin().asin() - f ).abs();
439
439
///
440
440
/// assert!(abs_difference <= f16::EPSILON);
441
441
/// # }
You can’t perform that action at this time.
0 commit comments