@@ -424,6 +424,8 @@ impl f32 {
424424
425425 /// Returns the natural logarithm of the number.
426426 ///
427+ /// This returns NaN when the number is negative, and negative infinity when number is zero.
428+ ///
427429 /// # Unspecified precision
428430 ///
429431 /// The precision of this function is non-deterministic. This means it varies by platform, Rust version, and
@@ -451,6 +453,8 @@ impl f32 {
451453
452454 /// Returns the logarithm of the number with respect to an arbitrary base.
453455 ///
456+ /// This returns NaN when the number is negative, and negative infinity when number is zero.
457+ ///
454458 /// The result might not be correctly rounded owing to implementation details;
455459 /// `self.log2()` can produce more accurate results for base 2, and
456460 /// `self.log10()` can produce more accurate results for base 10.
@@ -480,6 +484,8 @@ impl f32 {
480484
481485 /// Returns the base 2 logarithm of the number.
482486 ///
487+ /// This returns NaN when the number is negative, and negative infinity when number is zero.
488+ ///
483489 /// # Unspecified precision
484490 ///
485491 /// The precision of this function is non-deterministic. This means it varies by platform, Rust version, and
@@ -505,6 +511,8 @@ impl f32 {
505511
506512 /// Returns the base 10 logarithm of the number.
507513 ///
514+ /// This returns NaN when the number is negative, and negative infinity when number is zero.
515+ ///
508516 /// # Unspecified precision
509517 ///
510518 /// The precision of this function is non-deterministic. This means it varies by platform, Rust version, and
0 commit comments