From 36c756ea0268e6372102f4461f69a0d61ad5dab0 Mon Sep 17 00:00:00 2001 From: simonsan Date: Wed, 6 Jan 2021 13:56:19 +0000 Subject: [PATCH] deploy: 5fedf5aa292affe68b320b6bb7b6810334550fbb --- .markdownlint.yaml | 2 -- functional/index.html | 2 +- idioms/pass-var-to-closure.html | 2 +- idioms/temporary-mutability.html | 6 +++--- print.html | 10 +++++----- 5 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.markdownlint.yaml b/.markdownlint.yaml index b44e386..41ea186 100644 --- a/.markdownlint.yaml +++ b/.markdownlint.yaml @@ -1,5 +1,3 @@ --- MD004: false -MD010: - code_blocks: false MD013: false diff --git a/functional/index.html b/functional/index.html index 0a3d7b1..041bca5 100644 --- a/functional/index.html +++ b/functional/index.html @@ -175,7 +175,7 @@ fn main() { let mut sum = 0; for i in 1..11 { - sum += i; + sum += i; } println!("{}", sum); } diff --git a/idioms/pass-var-to-closure.html b/idioms/pass-var-to-closure.html index 86d2bc0..14afcb0 100644 --- a/idioms/pass-var-to-closure.html +++ b/idioms/pass-var-to-closure.html @@ -206,7 +206,7 @@ let num3 = Rc::new(3); let num2_cloned = num2.clone(); let num3_borrowed = num3.as_ref(); let closure = move || { - *num1 + *num2_cloned + *num3_borrowed; + *num1 + *num2_cloned + *num3_borrowed; }; } diff --git a/idioms/temporary-mutability.html b/idioms/temporary-mutability.html index 3ff9727..c350c76 100644 --- a/idioms/temporary-mutability.html +++ b/idioms/temporary-mutability.html @@ -176,9 +176,9 @@ and never modified. The intention can be made explicit by redefining the mutable

Say, vector must be sorted before usage.

Using nested block:

let data = {
-	let mut data = get_vec();
-	data.sort();
-	data
+    let mut data = get_vec();
+    data.sort();
+    data
 };
 
 // Here `data` is immutable.
diff --git a/print.html b/print.html
index f9c46ae..cb64c44 100644
--- a/print.html
+++ b/print.html
@@ -1144,7 +1144,7 @@ let num3 = Rc::new(3);
 let num2_cloned = num2.clone();
 let num3_borrowed = num3.as_ref();
 let closure = move || {
-	*num1 + *num2_cloned + *num3_borrowed;
+    *num1 + *num2_cloned + *num3_borrowed;
 };
 }
 
@@ -1255,9 +1255,9 @@ and never modified. The intention can be made explicit by redefining the mutable

Say, vector must be sorted before usage.

Using nested block:

let data = {
-	let mut data = get_vec();
-	data.sort();
-	data
+    let mut data = get_vec();
+    data.sort();
+    data
 };
 
 // Here `data` is immutable.
@@ -2404,7 +2404,7 @@ conversion between arbitrary types.

fn main() { let mut sum = 0; for i in 1..11 { - sum += i; + sum += i; } println!("{}", sum); }