about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-06-11 01:57:28 +0200
committerGitHub <noreply@github.com>2023-06-11 01:57:28 +0200
commit0ff35f27b0fed7f5b43b56a68a693abf966788e5 (patch)
treee4569c4969eb828128856a73c219985036da4230
parente9666d4d855737caa0be35c642192e6897ca0f3b (diff)
parent83d7826753251848f92427a8b713b5c59c48c3ef (diff)
Rollup merge of #112497 - icecream17:patch-1, r=Mark-Simulacrum
abs_sub: fix typo 0[-:][+.]0
-rw-r--r--library/std/src/f32.rs2
-rw-r--r--library/std/src/f64.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/f32.rs b/library/std/src/f32.rs
index 408244b2ce9..bed90418be1 100644
--- a/library/std/src/f32.rs
+++ b/library/std/src/f32.rs
@@ -528,7 +528,7 @@ impl f32 {
 
     /// The positive difference of two numbers.
     ///
-    /// * If `self <= other`: `0:0`
+    /// * If `self <= other`: `0.0`
     /// * Else: `self - other`
     ///
     /// # Examples
diff --git a/library/std/src/f64.rs b/library/std/src/f64.rs
index 6782b861f11..e72de05ca41 100644
--- a/library/std/src/f64.rs
+++ b/library/std/src/f64.rs
@@ -530,7 +530,7 @@ impl f64 {
 
     /// The positive difference of two numbers.
     ///
-    /// * If `self <= other`: `0:0`
+    /// * If `self <= other`: `0.0`
     /// * Else: `self - other`
     ///
     /// # Examples