From a3d3975782540aff1fbb70c9692e07678c5750c2 Mon Sep 17 00:00:00 2001 From: "Peng Hailin," Date: Tue, 9 May 2023 21:03:20 +0800 Subject: [PATCH] Update Ch15 --- projects/drop_trait_demo/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/drop_trait_demo/src/main.rs b/projects/drop_trait_demo/src/main.rs index 8974864..7a560a2 100644 --- a/projects/drop_trait_demo/src/main.rs +++ b/projects/drop_trait_demo/src/main.rs @@ -10,10 +10,10 @@ impl Drop for CustomSmartPointer { fn main() { let c = CustomSmartPointer { - data: String::from("c-我的事情"), + data: String::from("c - 我的事情"), }; let d = CustomSmartPointer { - data: String::from("d-其他事情"), + data: String::from("d - 其他事情"), }; println! ("已创建出一些 CustomSmartPointer 实例"); }