diff --git a/src/ch03-01-ownership.md b/src/ch03-01-ownership.md index e410357..d50a50d 100644 --- a/src/ch03-01-ownership.md +++ b/src/ch03-01-ownership.md @@ -263,7 +263,7 @@ 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 `struct`s, but they’re a common enough feature +methods in the 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: @@ -275,6 +275,8 @@ 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: