Skip to content

Commit 15feb5d

Browse files
committed
Add doc alias 'then_with' for then method on bool
1 parent 6c76ed5 commit 15feb5d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: library/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)