Skip to content

Commit b88849d

Browse files
authored
Rollup merge of #114754 - workingjubilee:gamma-ray-logger, r=thomcc
Name what ln_gamma does The previous description omitted some important details.
2 parents c9228ae + 90dc2f8 commit b88849d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

library/std/src/f32.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,9 @@ impl f32 {
989989
unsafe { cmath::tgammaf(self) }
990990
}
991991

992-
/// Returns the natural logarithm of the gamma function.
992+
/// Natural logarithm of the absolute value of the gamma function
993+
///
994+
/// The integer part of the tuple indicates the sign of the gamma function.
993995
///
994996
/// # Examples
995997
///

library/std/src/f64.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,9 @@ impl f64 {
989989
unsafe { cmath::tgamma(self) }
990990
}
991991

992-
/// Returns the natural logarithm of the gamma function.
992+
/// Natural logarithm of the absolute value of the gamma function
993+
///
994+
/// The integer part of the tuple indicates the sign of the gamma function.
993995
///
994996
/// # Examples
995997
///

0 commit comments

Comments
 (0)