Skip to content

Commit 0ff35f2

Browse files
authored
Rollup merge of rust-lang#112497 - icecream17:patch-1, r=Mark-Simulacrum
abs_sub: fix typo 0[-:][+.]0
2 parents e9666d4 + 83d7826 commit 0ff35f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/std/src/f32.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ impl f32 {
528528

529529
/// The positive difference of two numbers.
530530
///
531-
/// * If `self <= other`: `0:0`
531+
/// * If `self <= other`: `0.0`
532532
/// * Else: `self - other`
533533
///
534534
/// # Examples

library/std/src/f64.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ impl f64 {
530530

531531
/// The positive difference of two numbers.
532532
///
533-
/// * If `self <= other`: `0:0`
533+
/// * If `self <= other`: `0.0`
534534
/// * Else: `self - other`
535535
///
536536
/// # Examples

0 commit comments

Comments
 (0)