KoryXia

Results 2 comments of KoryXia

清楚 -> 清除 ## [1. Box的基本使用方式](https://rustycab.github.io/LearnRustEasy/chapter_3/chapter_3_16_2.html#1-box%E7%9A%84%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8%E6%96%B9%E5%BC%8F) 下面为Box使用的简单示例: ```rust fn main() { let b = Box::new(5); //此时5存储在堆上而不是栈上,b本身存储于栈上 println!("b = {}", b); //离开作用域时同时清楚堆和栈上的数据 } //清楚 -> 清除 ```