Skip to content

Commit 804cd84

Browse files
authored
Remove trailing whitespace
Trailing whitespace seemed to be causing the CI checks to error out.
1 parent 758ca9d commit 804cd84

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

library/core/src/bool.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ impl bool {
1818
/// assert_eq!(false.then_some(0), None);
1919
/// assert_eq!(true.then_some(0), Some(0));
2020
/// ```
21-
///
21+
///
2222
/// ```
2323
/// let mut a = 0;
2424
/// let mut function_with_side_effects = || { a += 1; };
25-
///
25+
///
2626
/// true.then_some(function_with_side_effects());
2727
/// false.then_some(function_with_side_effects());
28-
///
29-
/// // `a` is incremented twice because the value passed to `then_some` is
30-
/// // evaluated eagerly.
28+
///
29+
/// // `a` is incremented twice because the value passed to `then_some` is
30+
/// // evaluated eagerly.
3131
/// assert_eq!(a, 2);
3232
/// ```
3333
#[stable(feature = "bool_to_option", since = "1.62.0")]
@@ -49,14 +49,14 @@ impl bool {
4949
/// assert_eq!(false.then(|| 0), None);
5050
/// assert_eq!(true.then(|| 0), Some(0));
5151
/// ```
52-
///
52+
///
5353
/// ```
5454
/// let mut a = 0;
55-
///
55+
///
5656
/// true.then(|| { a += 1; });
5757
/// false.then(|| { a += 1; });
58-
///
59-
/// // `a` is incremented once because the closure is evaluated lazily by
58+
///
59+
/// // `a` is incremented once because the closure is evaluated lazily by
6060
/// // `then`.
6161
/// ```
6262
#[stable(feature = "lazy_bool_to_option", since = "1.50.0")]

0 commit comments

Comments
 (0)