mirror of
https://github.com/gnu4cn/rust-lang-zh_CN.git
synced 2025-03-14 03:10:44 +08:00
Update Ch10
This commit is contained in:
parent
1bbdd45927
commit
9693a93a94
@ -1061,7 +1061,7 @@ fn longest<'a>(x: &'a str, y: &'a str) -> &'a str {
|
||||
}
|
||||
```
|
||||
|
||||
*清单 10-21:指明了签名中全部引用都必须有着同一生命周期 `'a` 的 `longest` 函数*
|
||||
*清单 10-21:指明签名中全部引用,都必须有着同一生命周期 `'a` 的 `longest` 函数定义*
|
||||
|
||||
|
||||
此代码应会编译,并在清单 10-19 的 `main` 函数中使用他时,产生出这里想要的结果来。
|
||||
|
Loading…
Reference in New Issue
Block a user