From da9d58ea0ce594e51c87bedb24c430c938104142 Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Tue, 2 Aug 2016 11:12:15 -0400 Subject: [PATCH] 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 adb141964..b0e5b3c4e 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: