From baf38841042f0680d5f0260005d51f6efb66d9bd Mon Sep 17 00:00:00 2001 From: Luke Zaparaniuk Date: Sun, 4 Dec 2016 14:57:43 +0000 Subject: [PATCH] Corrected Drop trait code representation on line 450 --- 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 35244ad..34c87c1 100644 --- a/src/ch04-01-what-is-ownership.md +++ b/src/ch04-01-what-is-ownership.md @@ -447,7 +447,7 @@ Rust has a special annotation called the `Copy` trait that we can place on types like integers that are stored on the stack (we’ll talk more about traits in Chapter 10). If a type has the `Copy` trait, an older variable is still usable after assignment. Rust won’t let us annotate a type with the `Copy` -trait if the type, or any of its parts, has implemented the `D``rop` trait. If +trait if the type, or any of its parts, has implemented the `Drop` trait. If the type needs something special to happen when the value goes out of scope and we add the `Copy` annotation to that type, we’ll get a compile time error.