about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVenus Xeon-Blonde <alfriadox@gmail.com>2022-09-21 23:23:14 -0400
committerGitHub <noreply@github.com>2022-09-21 23:23:14 -0400
commit804cd8499b197907ee2c74c5f2c6dab57269d728 (patch)
tree492b90844234f7d4f04c5802a5facbfdf37ce230
parent758ca9dc3aef53218f49ba0429379c66f06c6cbb (diff)
downloadrust-804cd8499b197907ee2c74c5f2c6dab57269d728.tar.gz
rust-804cd8499b197907ee2c74c5f2c6dab57269d728.zip
Remove trailing whitespace
Trailing whitespace seemed to be causing the CI checks to error out.
-rw-r--r--library/core/src/bool.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/library/core/src/bool.rs b/library/core/src/bool.rs
index bf020bdba76..e717d1f3524 100644
--- a/library/core/src/bool.rs
+++ b/library/core/src/bool.rs
@@ -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")]
@@ -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")]