about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-08-25 09:00:12 +0200
committerGitHub <noreply@github.com>2023-08-25 09:00:12 +0200
commitb88849d77c252a75ffa68b7c1a9aa8240935812a (patch)
tree9eb58268b911df64c31cd37c06ccf0ea9eb68a15
parentc9228aeaba61f57d425593f4cbbc26e4a6750a9d (diff)
parent90dc2f839b05bf0467bac71d9be738eab6423dc7 (diff)
downloadrust-b88849d77c252a75ffa68b7c1a9aa8240935812a.tar.gz
rust-b88849d77c252a75ffa68b7c1a9aa8240935812a.zip
Rollup merge of #114754 - workingjubilee:gamma-ray-logger, r=thomcc
Name what ln_gamma does

The previous description omitted some important details.
-rw-r--r--library/std/src/f32.rs4
-rw-r--r--library/std/src/f64.rs4
2 files changed, 6 insertions, 2 deletions
diff --git a/library/std/src/f32.rs b/library/std/src/f32.rs
index 776899dbcfd..c3506175715 100644
--- a/library/std/src/f32.rs
+++ b/library/std/src/f32.rs
@@ -989,7 +989,9 @@ impl f32 {
         unsafe { cmath::tgammaf(self) }
     }
 
-    /// Returns the natural logarithm of the gamma function.
+    /// Natural logarithm of the absolute value of the gamma function
+    ///
+    /// The integer part of the tuple indicates the sign of the gamma function.
     ///
     /// # Examples
     ///
diff --git a/library/std/src/f64.rs b/library/std/src/f64.rs
index 4f4f5f02471..e4b7bfeeb84 100644
--- a/library/std/src/f64.rs
+++ b/library/std/src/f64.rs
@@ -989,7 +989,9 @@ impl f64 {
         unsafe { cmath::tgamma(self) }
     }
 
-    /// Returns the natural logarithm of the gamma function.
+    /// Natural logarithm of the absolute value of the gamma function
+    ///
+    /// The integer part of the tuple indicates the sign of the gamma function.
     ///
     /// # Examples
     ///