Skip to content

Commit f67d0b2

Browse files
rossmacarthurgitbot
authored and
gitbot
committed
Add doc alias 'then_with' for then method on bool
1 parent 4f58698 commit f67d0b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/bool.rs

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ impl bool {
5454
/// // `then`.
5555
/// assert_eq!(a, 1);
5656
/// ```
57+
#[doc(alias = "then_with")]
5758
#[stable(feature = "lazy_bool_to_option", since = "1.50.0")]
5859
#[cfg_attr(not(test), rustc_diagnostic_item = "bool_then")]
5960
#[inline]

0 commit comments

Comments
 (0)