mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Rollup merge of #133789 - rossmacarthur:then-with-doc-alias, r=Mark-Simulacrum
Add doc alias 'then_with' for `then` method on `bool` I think its logical to search for this name since `Ordering::then_with` exists as well.
This commit is contained in:
commit
38cc868e21
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user