From 013e5913329704506025873c38faa5bd113355c9 Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Tue, 2 Aug 2016 11:07:06 -0400 Subject: [PATCH 1/3] Clarify the version of mdbook we use --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f7e74f1..c2355fd 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ If you would like to see this version rendered, it’s [on GitHub pages][html]. ## Requirements -Building the book requires [mdBook]. To get it: +Building the book requires [mdBook] >= v0.0.13. To get it: [mdBook]: https://github.com/azerupi/mdBook From da9d58ea0ce594e51c87bedb24c430c938104142 Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Tue, 2 Aug 2016 11:12:15 -0400 Subject: [PATCH 2/3] Put back code formatting inside links; works with mdbook 0.0.13 --- src/ch04-02-ownership.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ch04-02-ownership.md b/src/ch04-02-ownership.md index adb1419..b0e5b3c 100644 --- a/src/ch04-02-ownership.md +++ b/src/ch04-02-ownership.md @@ -258,7 +258,7 @@ inexpensive. But what if we _do_ want to deeply copy the `String`’s data, and not just the `String` itself? There’s a common method for that: `clone()`. We will discuss -methods in the next section on [structs], but they’re a common enough feature +methods in the next section on [`structs`], but they’re a common enough feature in many programming languages that you have probably seen them before. Here’s an example of the `clone()` method in action: @@ -270,7 +270,7 @@ let s2 = s1.clone(); println!("{}", s1); ``` -[structs]: ch05-01-structs.html +[`structs`]: ch05-01-structs.html This will work just fine. Remember our diagram from before? In this case, it _is_ doing this: From fd54ef0b8558279cc4326075aebd8c2b0edbd997 Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Tue, 2 Aug 2016 11:15:09 -0400 Subject: [PATCH 3/3] Remove duplicated "is" from println output Fixes #164. --- src/ch03-08-loops.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch03-08-loops.md b/src/ch03-08-loops.md index 7c73efc..f9955c7 100644 --- a/src/ch03-08-loops.md +++ b/src/ch03-08-loops.md @@ -151,7 +151,7 @@ fn main() { let mut index = 0; while index < 5 { - println!("the value is is: {}", a[index]); + println!("the value is: {}", a[index]); index = index + 1; }