diff --git a/src/Ch10_Generic_Types_Traits_and_Lifetimes.md b/src/Ch10_Generic_Types_Traits_and_Lifetimes.md index 2719a78..48e86e5 100644 --- a/src/Ch10_Generic_Types_Traits_and_Lifetimes.md +++ b/src/Ch10_Generic_Types_Traits_and_Lifetimes.md @@ -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` 函数中使用他时,产生出这里想要的结果来。