Skip to content

Commit

Permalink
Merge pull request #771 from 769344359/patch-1
Browse files Browse the repository at this point in the history
Update ch10-02-traits.md
  • Loading branch information
KaiserY authored Feb 22, 2024
2 parents 3334e96 + 46f4079 commit c26a869
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 c26a869

Please sign in to comment.