Skip to content

Commit

Permalink
Merge pull request #812 from Metaphorme/main
Browse files Browse the repository at this point in the history
优化Trait部分翻译
  • Loading branch information
KaiserY authored Aug 29, 2024
2 parents 455a576 + 62a2e08 commit 693598b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch10-02-traits.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ trait 体中可以有多个方法:一行一个方法签名且都以分号结

#### Trait Bound 语法

`impl Trait` 语法适用于直观的例子,它实际上是一种较长形式我们称为 *trait bound*语法的语法糖。它看起来像:
`impl Trait` 语法更直观,但它实际上是更长形式的 *trait bound* 语法的语法糖。它看起来像:

```rust,ignore
pub fn notify<T: Summary>(item: &T) {
Expand Down

0 comments on commit 693598b

Please sign in to comment.