Skip to content

Commit a5d7f85

Browse files
Merge pull request #357 from stormgbs/master
修正单词错误
2 parents 613a2b6 + aaaec3b commit a5d7f85

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

1st-glance/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Rust 运行在以下操作系统上:Linux, OS X, Windows, FreeBSD, Android, iO
4141
- fuyingfuying
4242
- qdao
4343
- JohnSmithX
44-
- stormgbs
44+
- [stormgbs (AX) ](https://github.com/stormgbs)
4545
- tennix
4646
- anzhihun
4747
- zonyitoo(Elton, e猫)

ownership-system/lifetime.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
生命周期( Lifetimes
1+
生命周期( Lifetime
22
-------------
33

44
下面是一个资源借用的例子:
@@ -270,7 +270,7 @@ struct Person {
270270
<anon>:2 age: &str,
271271
```
272272

273-
之所以会报错,这是因为Rust要确保`Person`的Lifetime不会比它的借用`name`,不然会出现`Dangling Pointer`的严重内存问题。所以我们需要为`name`引用声明Lifetime
273+
之所以会报错,这是因为Rust要确保`Person`的Lifetime不会比它的`age`借用长,不然会出现`Dangling Pointer`的严重内存问题。所以我们需要为`age`借用声明Lifetime
274274

275275
```rust
276276
struct Person<'a> {

0 commit comments

Comments
 (0)