Merge pull request #327 from loheagn/master

Fix: spelling mistake in `zh-CN/src/lifetime/basic.md`
This commit is contained in:
Sunface 2022-12-07 08:45:12 +08:00 committed by GitHub
commit a293aa3b3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ Rust 的借用检查器使用显式的生命周期标注来确定一个引用的
**大家先忽略生命周期消除规则**,让我们看看,函数签名中的生命周期有哪些限制:
- 需要为每个引用标注上合适的生命周期
- 返回值中的引用,它的生命周期要么跟某个引用参数相同,要么是 `'statc`
- 返回值中的引用,它的生命周期要么跟某个引用参数相同,要么是 `'static`
**示例**
```rust,editable
@ -334,4 +334,4 @@ enum Either<'a> {
}
fn main() {}
```
```