From 62a2e08eaa44dab55b0c2787516762f53d3acc6c Mon Sep 17 00:00:00 2001 From: Metaphorme <77@diazepam.cc> Date: Thu, 29 Aug 2024 14:24:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96Trait=E9=83=A8=E5=88=86?= =?UTF-8?q?=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ch10-02-traits.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch10-02-traits.md b/src/ch10-02-traits.md index a19537e..3a185a3 100644 --- a/src/ch10-02-traits.md +++ b/src/ch10-02-traits.md @@ -116,7 +116,7 @@ trait 体中可以有多个方法:一行一个方法签名且都以分号结 #### Trait Bound 语法 -`impl Trait` 语法适用于直观的例子,它实际上是一种较长形式我们称为 *trait bound*语法的语法糖。它看起来像: +`impl Trait` 语法更直观,但它实际上是更长形式的 *trait bound* 语法的语法糖。它看起来像: ```rust,ignore pub fn notify(item: &T) {