about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoss MacArthur <ross@macarthur.io>2024-12-03 09:20:34 +0200
committerRoss MacArthur <ross@macarthur.io>2024-12-03 09:20:34 +0200
commit15feb5dc31e36ee84924c6632a97c45019d80694 (patch)
tree4188646f6ff8d45f6e4202c99b5aa8d15330c679
parent6c76ed5503966c39381fac64eb905ac45e346695 (diff)
downloadrust-15feb5dc31e36ee84924c6632a97c45019d80694.tar.gz
rust-15feb5dc31e36ee84924c6632a97c45019d80694.zip
Add doc alias 'then_with' for `then` method on `bool`
-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]