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 authored and gitbot committed Feb 20, 2025
1 parent d7adaa3 commit 0196d8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 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 0196d8c

Please sign in to comment.