From 612f9bea87fbf9fd760f4ceabd282fc7bf130943 Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Fri, 19 Aug 2016 16:56:15 -0400 Subject: [PATCH] Fix some bad links I made --- src/ch04-01-ownership.md | 10 +++++----- src/chYY-YY-workspaces.md | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ch04-01-ownership.md b/src/ch04-01-ownership.md index 013ca6ce8..8d9177072 100644 --- a/src/ch04-01-ownership.md +++ b/src/ch04-01-ownership.md @@ -261,9 +261,11 @@ copying can be assumed to be 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 section on [`structs` in Chapter XX], but they’re a common -enough feature in many programming languages that you have probably seen them -before. +methods in the section on [`structs` in Chapter XX][structs], but they’re a +common enough feature in many programming languages that you have probably seen +them before. + +[structs]: ch05-01-structs.html Here’s an example of the `clone()` method in action: @@ -274,8 +276,6 @@ let s2 = s1.clone(); println!("{}", s1); ``` -[`structs`]: ch05-01-structs.html - This will work just fine. Remember our diagram from before? In this case, it _is_ doing this: diff --git a/src/chYY-YY-workspaces.md b/src/chYY-YY-workspaces.md index f33db1e1c..3e1ea4951 100644 --- a/src/chYY-YY-workspaces.md +++ b/src/chYY-YY-workspaces.md @@ -8,8 +8,8 @@ We weren't technically precise about the difference between a *package* and a interchangeably and everyone will understand. But there are cases when it makes sense to have multiple crates in one project -because [insert reasons here]. For example, [insert examples here, maybe -log/env_log in rust-lang-nursery?] +because (insert reasons here). For example, (insert examples here, maybe +log/env_log in rust-lang-nursery?) So let's get more precise now. Earlier, we said: