From 3e305276eb37075ee024fc59e33f53f678605d2d Mon Sep 17 00:00:00 2001 From: Guillaume Date: Mon, 1 Sep 2025 10:15:50 +0200 Subject: [PATCH 1/6] Missing an 'a' in the string --- source/_posts/rust.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_posts/rust.md b/source/_posts/rust.md index 16b6fc4..de1f4ec 100644 --- a/source/_posts/rust.md +++ b/source/_posts/rust.md @@ -54,7 +54,7 @@ println!("{} {}", 1, 3); // Positional Arguments println!( - "{0} is {1} {2}, also {0} is a {3} programming language", + "{0} is a {1} {2}, also {0} is a {3} programming language", "Rust", "cool", "language", "safe" ); From 93442d994fc2851bb2ba493044de88bd53c4529f Mon Sep 17 00:00:00 2001 From: Guillaume Date: Mon, 1 Sep 2025 10:22:07 +0200 Subject: [PATCH 2/6] missing semicolon --- source/_posts/rust.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_posts/rust.md b/source/_posts/rust.md index de1f4ec..6a3daf8 100644 --- a/source/_posts/rust.md +++ b/source/_posts/rust.md @@ -270,7 +270,7 @@ println!("Share {cs} for developers"); let my_string = String::new(); // Converting to a string object -let S_string = a_string.to_string() +let S_string = a_string.to_string(); // Creating an initialized string object let lang = String::from("Rust"); From 675cda08f8e5f588600de0e42290b5fe2b1c28a0 Mon Sep 17 00:00:00 2001 From: Guillaume Date: Mon, 1 Sep 2025 10:27:25 +0200 Subject: [PATCH 3/6] Print should match the if statement --- source/_posts/rust.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_posts/rust.md b/source/_posts/rust.md index 6a3daf8..c673069 100644 --- a/source/_posts/rust.md +++ b/source/_posts/rust.md @@ -427,7 +427,7 @@ let case1: i32 = 81; let case2: i32 = 82; if case1 < case2 { - println!("case1 is greater than case2"); + println!("case1 is less than case2"); } ``` From c0876d8ed1dc5c5214e368d4baa9ceaecefa4bfb Mon Sep 17 00:00:00 2001 From: Guillaume Date: Mon, 1 Sep 2025 10:51:20 +0200 Subject: [PATCH 4/6] fixed missing 'than' in description --- source/_posts/rust.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_posts/rust.md b/source/_posts/rust.md index c673069..d64c16e 100644 --- a/source/_posts/rust.md +++ b/source/_posts/rust.md @@ -321,7 +321,7 @@ println!("{hi}"); | `e == f` | `e` is equal to `f` | | `e != f` | `e` is NOT equal to `f` | | `e < f` | `e` is less than `f` | -| `e > f` | `e` is greater `f` | +| `e > f` | `e` is greater than `f` | | `e <= f` | `e` is less than or equal to `f` | | `e >= f` | `e` is greater or equal to `f` | From 16ab6d35fa7b83c6ac8002760c671ab634d43b6a Mon Sep 17 00:00:00 2001 From: Guillaume Date: Mon, 1 Sep 2025 10:52:26 +0200 Subject: [PATCH 5/6] fixed incorrect space --- source/_posts/rust.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_posts/rust.md b/source/_posts/rust.md index d64c16e..30c668f 100644 --- a/source/_posts/rust.md +++ b/source/_posts/rust.md @@ -596,7 +596,7 @@ for (v, c) in (0..10 + 1).enumerate() { println!("Here we go continue?"); continue; } - println! {"The value of v is : {v}"}; + println!("The value of v is : {v}"); } ``` From 738bd672d49371796012b515c163af9238054dac Mon Sep 17 00:00:00 2001 From: Guillaume Date: Mon, 1 Sep 2025 10:56:39 +0200 Subject: [PATCH 6/6] fix: correct arithmetic operation results in Rust reference --- source/_posts/rust.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/_posts/rust.md b/source/_posts/rust.md index 30c668f..b9e5920 100644 --- a/source/_posts/rust.md +++ b/source/_posts/rust.md @@ -412,9 +412,9 @@ let mut l = k; | Operator | Description | | -------------------- | --------------------------------------- | -| `k += l` | Add a value and assign, then k=9 | -| `k -= l` | Substrate a value and assign, then k=18 | -| `k /= l` | Divide a value and assign, then k=9 | +| `k += l` | Add a value and assign, then k=18 | +| `k -= l` | Subtract a value and assign, then k=0 | +| `k /= l` | Divide a value and assign, then k=1 | | `k *= l` | Multiply a value and assign, then k=81 | | k \|= l | Bitwise OR and assign, then k=89 |