Skip to content

Commit a01b390

Browse files
authored
Merge pull request sunface#536 from hjklchan/patch-1
Update basic.md
2 parents 8e0def5 + fe05f79 commit a01b390

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zh-CN/src/lifetime/basic.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ fn print_one<'a>(x: &'a i32) {
7777
println!("`print_one`: x is {}", x);
7878
}
7979
80-
// 可变引用依然需要标准生命周期
80+
// 可变引用依然需要标注生命周期
8181
fn add_one<'a>(x: &'a mut i32) {
8282
*x += 1;
8383
}
@@ -163,7 +163,7 @@ fn main() {
163163
#### Structs
164164
6. 🌟
165165
```rust,editable
166-
/* 增加合适的生命周期标准,让代码工作 */
166+
/* 增加合适的生命周期标注,令代码正常工作 */
167167
168168
// `i32` 的引用必须比 `Borrowed` 活得更久
169169
#[derive(Debug)]

0 commit comments

Comments
 (0)