TRPL: Fix a broken link to 'move semantics'

This commit is contained in:
Michael Park 2015-05-13 11:41:25 -07:00
parent 222cd73b8a
commit ee57f28f49

View File

@ -175,7 +175,7 @@ data, we call the `clone()` method. In this example, `y` is no longer a referenc
to the vector stored in `x`, but a copy of its first element, `"Hello"`. Now
that we dont have a reference, our `push()` works just fine.
[move]: move-semantics.html
[move]: ownership.html#move-semantics
If we truly want a reference, we need the other option: ensure that our reference
goes out of scope before we try to do the mutation. That looks like this: