Fix: spelling mistake

This commit is contained in:
Nan Li 2022-11-11 11:25:43 +08:00 committed by GitHub
parent 1a5bdaaf77
commit eed8a469fa
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() {}
```
```