From 912f5921990b3752716f6401b1eb5f68444096aa Mon Sep 17 00:00:00 2001 From: Igor Petruk Date: Mon, 23 Jan 2023 20:26:21 +0000 Subject: [PATCH] Update copy-clone.md (#221) --- src/ownership/copy-clone.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ownership/copy-clone.md b/src/ownership/copy-clone.md index 05da4176..43b7c69a 100644 --- a/src/ownership/copy-clone.md +++ b/src/ownership/copy-clone.md @@ -45,4 +45,7 @@ In the above example, try the following: * Remove `Copy` from the `derive` attribute. The compiler error is now in the `println!` for `p1`. * Show that it works if you clone `p1` instead. +If students ask about `derive`, it is sufficient to say that this is a way to generate code in Rust +at compile time. In this case the default implementations of `Copy` and `Clone` traits are generated. +