diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-08-25 09:00:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-25 09:00:12 +0200 |
| commit | b88849d77c252a75ffa68b7c1a9aa8240935812a (patch) | |
| tree | 9eb58268b911df64c31cd37c06ccf0ea9eb68a15 | |
| parent | c9228aeaba61f57d425593f4cbbc26e4a6750a9d (diff) | |
| parent | 90dc2f839b05bf0467bac71d9be738eab6423dc7 (diff) | |
| download | rust-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.rs | 4 | ||||
| -rw-r--r-- | library/std/src/f64.rs | 4 |
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 /// |
