From 0a10b2f95636c0f11f2d576daae850c2cb349680 Mon Sep 17 00:00:00 2001 From: aaaxx Date: Mon, 26 Dec 2016 07:26:53 +0100 Subject: [PATCH] Fix reference to wrong figure Please double check if I got this concept right; I'm a programming noob. --- src/ch04-01-what-is-ownership.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch04-01-what-is-ownership.md b/src/ch04-01-what-is-ownership.md index 34c87c1..6c458c7 100644 --- a/src/ch04-01-what-is-ownership.md +++ b/src/ch04-01-what-is-ownership.md @@ -415,7 +415,7 @@ println!("s1 = {}, s2 = {}", s1, s2); ``` This works just fine and is how you can explicitly produce the behavior shown -in Figure 4-4, where the heap data *does* get copied. +in Figure 4-5, where the heap data *does* get copied. When you see a call to `clone`, you know that some arbitrary code is being executed and that code may be expensive. It’s a visual indicator that something