Skip to content

Commit 6d82e78

Browse files
committed
remove implementation detail from doc
1 parent 0eba4c2 commit 6d82e78

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: src/libstd/f32.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -470,9 +470,9 @@ impl f32 {
470470
return unsafe { intrinsics::logf32(self) };
471471
}
472472

473-
/// Returns the logarithm of the number with respect to an arbitrary base,
474-
/// calculated as `self.ln() / base.ln()`.
473+
/// Returns the logarithm of the number with respect to an arbitrary base.
475474
///
475+
/// The result may not be correctly rounded owing to implementation details;
476476
/// `self.log2()` can produce more accurate results for base 2, and
477477
/// `self.log10()` can produce more accurate results for base 10.
478478
///

Diff for: src/libstd/f64.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -430,9 +430,9 @@ impl f64 {
430430
self.log_wrapper(|n| { unsafe { intrinsics::logf64(n) } })
431431
}
432432

433-
/// Returns the logarithm of the number with respect to an arbitrary base,
434-
/// calculated as `self.ln() / base.ln()`.
433+
/// Returns the logarithm of the number with respect to an arbitrary base.
435434
///
435+
/// The result may not be correctly rounded owing to implementation details;
436436
/// `self.log2()` can produce more accurate results for base 2, and
437437
/// `self.log10()` can produce more accurate results for base 10.
438438
///

0 commit comments

Comments
 (0)