about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--library/core/src/bool.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/bool.rs b/library/core/src/bool.rs
index 58a870d2e07..1590b9f29fc 100644
--- a/library/core/src/bool.rs
+++ b/library/core/src/bool.rs
@@ -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]