Skip to content

Commit 90dc2f8

Browse files
Name what ln_gamma does
The previous description omitted some important details.
1 parent a6f8aa5 commit 90dc2f8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

library/std/src/f32.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,9 @@ impl f32 {
978978
unsafe { cmath::tgammaf(self) }
979979
}
980980

981-
/// Returns the natural logarithm of the gamma function.
981+
/// Natural logarithm of the absolute value of the gamma function
982+
///
983+
/// The integer part of the tuple indicates the sign of the gamma function.
982984
///
983985
/// # Examples
984986
///

library/std/src/f64.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,9 @@ impl f64 {
978978
unsafe { cmath::tgamma(self) }
979979
}
980980

981-
/// Returns the natural logarithm of the gamma function.
981+
/// Natural logarithm of the absolute value of the gamma function
982+
///
983+
/// The integer part of the tuple indicates the sign of the gamma function.
982984
///
983985
/// # Examples
984986
///

0 commit comments

Comments
 (0)