Skip to content

Commit

Permalink
Remove trailing whitespace
Browse files Browse the repository at this point in the history
Trailing whitespace seemed to be causing the CI checks to error out.
  • Loading branch information
vcfxb authored Sep 22, 2022
1 parent 758ca9d commit 804cd84
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions library/core/src/bool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ impl bool {
/// assert_eq!(false.then_some(0), None);
/// assert_eq!(true.then_some(0), Some(0));
/// ```
///
///
/// ```
/// let mut a = 0;
/// let mut function_with_side_effects = || { a += 1; };
///
///
/// true.then_some(function_with_side_effects());
/// false.then_some(function_with_side_effects());
///
/// // `a` is incremented twice because the value passed to `then_some` is
/// // evaluated eagerly.
///
/// // `a` is incremented twice because the value passed to `then_some` is
/// // evaluated eagerly.
/// assert_eq!(a, 2);
/// ```
#[stable(feature = "bool_to_option", since = "1.62.0")]
Expand All @@ -49,14 +49,14 @@ impl bool {
/// assert_eq!(false.then(|| 0), None);
/// assert_eq!(true.then(|| 0), Some(0));
/// ```
///
///
/// ```
/// let mut a = 0;
///
///
/// true.then(|| { a += 1; });
/// false.then(|| { a += 1; });
///
/// // `a` is incremented once because the closure is evaluated lazily by
///
/// // `a` is incremented once because the closure is evaluated lazily by
/// // `then`.
/// ```
#[stable(feature = "lazy_bool_to_option", since = "1.50.0")]
Expand Down

0 comments on commit 804cd84

Please sign in to comment.