mirror of
https://github.com/gnu4cn/rust-lang-zh_CN.git
synced 2024-12-26 12:50:42 +08:00
Update Ch15
This commit is contained in:
parent
925f3355c0
commit
a3d3975782
@ -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 实例");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user