Skip to content

Commit

Permalink
Add doc alias 'then_with' for then method on bool
Browse files Browse the repository at this point in the history
  • Loading branch information
rossmacarthur committed Dec 3, 2024
1 parent 6c76ed5 commit 15feb5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/bool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ impl bool {
/// // `then`.
/// assert_eq!(a, 1);
/// ```
#[doc(alias = "then_with")]
#[stable(feature = "lazy_bool_to_option", since = "1.50.0")]
#[cfg_attr(not(test), rustc_diagnostic_item = "bool_then")]
#[inline]
Expand Down

0 comments on commit 15feb5d

Please sign in to comment.