-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
书籍错误记录 #2
Comments
这里a和b反了 |
3.17.4 typo |
清楚 -> 清除 1. Box的基本使用方式下面为Box使用的简单示例: fn main() {
let b = Box::new(5); //此时5存储在堆上而不是栈上,b本身存储于栈上
println!("b = {}", b); //离开作用域时同时清楚堆和栈上的数据
}
//清楚 -> 清除 |
对于一个变量的引用就是在此变量前面加上&符合。-> 应该是 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
本书错误记录
The text was updated successfully, but these errors were encountered: