TRPL: Fix a broken link to 'move semantics'
This commit is contained in:
parent
222cd73b8a
commit
ee57f28f49
@ -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 don’t 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:
|
||||
|
Loading…
Reference in New Issue
Block a user