mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 20:49:41 +00:00
Update zh-CN/src/lifetime/basic.md
This commit is contained in:
@ -163,7 +163,7 @@ fn main() {
|
||||
#### Structs
|
||||
6. 🌟
|
||||
```rust,editable
|
||||
/* 增加合适的生命周期标注,让代码工作 */
|
||||
/* 增加合适的生命周期标注,令代码正常工作 */
|
||||
|
||||
// `i32` 的引用必须比 `Borrowed` 活得更久
|
||||
#[derive(Debug)]
|
||||
|
Reference in New Issue
Block a user