We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e7bacd commit 98ff927Copy full SHA for 98ff927
library/std/src/f64.rs
@@ -332,8 +332,8 @@ impl f64 {
332
/// let abs_difference = (x.powf(2.0) - (x * x)).abs();
333
/// assert!(abs_difference < 1e-10);
334
///
335
- /// assert_eq!(f64::powf(1.0, f64::NAN), 1.0)
336
- /// assert_eq!(f64::powf(f64::NAN, 0.0), 1.0)
+ /// assert_eq!(f64::powf(1.0, f64::NAN), 1.0);
+ /// assert_eq!(f64::powf(f64::NAN, 0.0), 1.0);
337
/// ```
338
#[rustc_allow_incoherent_impl]
339
#[must_use = "method returns a new number and does not mutate the original value"]
0 commit comments