Merge pull request #812 from Metaphorme/main

优化Trait部分翻译
pull/813/head
KaiserY 4 weeks ago committed by GitHub
commit 693598b0fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -116,7 +116,7 @@ trait 体中可以有多个方法:一行一个方法签名且都以分号结
#### Trait Bound 语法
`impl Trait` 语法适用于直观的例子,它实际上是一种较长形式我们称为 *trait bound*语法的语法糖。它看起来像:
`impl Trait` 语法更直观,但它实际上是更长形式的 *trait bound* 语法的语法糖。它看起来像:
```rust,ignore
pub fn notify<T: Summary>(item: &T) {

Loading…
Cancel
Save