From ee57f28f499cb16eeea4b3ee0c6bfc2975221542 Mon Sep 17 00:00:00 2001 From: Michael Park Date: Wed, 13 May 2015 11:41:25 -0700 Subject: [PATCH] TRPL: Fix a broken link to 'move semantics' --- src/doc/trpl/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/trpl/README.md b/src/doc/trpl/README.md index 89f0db8dc56f3..9ca5de2b50a4d 100644 --- a/src/doc/trpl/README.md +++ b/src/doc/trpl/README.md @@ -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: