update readme.md

pull/402/head
sunface 3 years ago
parent 3815a650b7
commit 6d080e17a3

@ -5,7 +5,7 @@
- 国内镜像: https://book.rust.team
- 知乎: [支持章节内目录跳转,很好用!](https://www.zhihu.com/column/c_1452781034895446017)
- 最近修订: 新增章节 [进阶错误处理](https://zhuanlan.zhihu.com/p/465842938)
- 最近修订: 2022-02-11 新增 [&'static 和 T: 'static](https://zhuanlan.zhihu.com/p/466171521)
- Rust版本 Rust edition 2021
- QQ交流群1009730433

@ -160,4 +160,5 @@ error[E0597]: `s1` does not live long enough
- 如果你需要添加 `&'static` 来让代码工作,那很可能是设计上出问题了
- 如果你希望满足和取悦编译器,那就使用 `T: 'static`,很多时候它都能解决问题
> 一个小知识,在 Rust 标准库中,有 48 处用到了 &'static 112 处用到了 `T: 'static` ,看来取悦编译器不仅仅是菜鸟需要的,高手也经常用到 :)
> 一个小知识,在 Rust 标准库中,有 48 处用到了 &'static 112 处用到了 `T: 'static` ,看来取悦编译器不仅仅是菜鸟需要的,高手也经常用到 :)

Loading…
Cancel
Save