Skip to content

Commit

Permalink
docs: add alias log1p to ln_1p
Browse files Browse the repository at this point in the history
  • Loading branch information
notriddle committed Aug 21, 2023
1 parent fe5f591 commit 88bd304
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions library/std/src/f32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,7 @@ impl f32 {
///
/// assert!(abs_difference < 1e-10);
/// ```
#[doc(alias = "log1p")]
#[rustc_allow_incoherent_impl]
#[must_use = "method returns a new number and does not mutate the original value"]
#[stable(feature = "rust1", since = "1.0.0")]
Expand Down
1 change: 1 addition & 0 deletions library/std/src/f64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,7 @@ impl f64 {
///
/// assert!(abs_difference < 1e-20);
/// ```
#[doc(alias = "log1p")]
#[rustc_allow_incoherent_impl]
#[must_use = "method returns a new number and does not mutate the original value"]
#[stable(feature = "rust1", since = "1.0.0")]
Expand Down

0 comments on commit 88bd304

Please sign in to comment.