From 39f34e71ff8f64123383166bc01f378b7793b608 Mon Sep 17 00:00:00 2001 From: xieyu567 Date: Sat, 25 Dec 2021 07:47:22 +0800 Subject: [PATCH] =?UTF-8?q?2.8.1=20=E9=94=99=E5=AD=97=E6=94=B9=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- book-contents/basic/trait/generic.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book-contents/basic/trait/generic.md b/book-contents/basic/trait/generic.md index 58588876..6b1fb4be 100644 --- a/book-contents/basic/trait/generic.md +++ b/book-contents/basic/trait/generic.md @@ -175,7 +175,7 @@ fn main() { } ``` -切记,所有的泛型参数都要提前声明: `Point` ! 但是如果你的结构体变成这鬼样:`struct Woo`,那么你需要考虑拆分这个结构体,减少泛型参数的个人和代码复杂度。 +切记,所有的泛型参数都要提前声明: `Point` ! 但是如果你的结构体变成这鬼样:`struct Woo`,那么你需要考虑拆分这个结构体,减少泛型参数的个数和代码复杂度。 ## 枚举中使用泛型