Update link to structs chapter

This commit is contained in:
Zachary T Jones 2016-07-28 13:08:42 -04:00
parent 09909d27d6
commit 0adad8df42

View File

@ -258,7 +258,7 @@ inexpensive.
But what if we _do_ want to deeply copy the `String`s data, and not just the
`String` itself? Theres a common method for that: `clone()`. We will discuss
methods in the next section on [structs][struct], but theyre a common enough feature
methods in the next section on [structs], but theyre a common enough feature
in many programming languages that you have probably seen them before.
Heres an example of the `clone()` method in action:
@ -270,7 +270,7 @@ let s2 = s1.clone();
println!("{}", s1);
```
[struct]: structs.html
[structs]: ch05-01-structs.html
This will work just fine. Remember our diagram from before? In this case,
it _is_ doing this: