From a3657db93a6afbcb523c657a3ef17ab03f4425fe Mon Sep 17 00:00:00 2001 From: Unisko PENG Date: Wed, 12 Apr 2023 16:52:45 +0800 Subject: [PATCH] Update Ch10 --- src/Ch10_Generic_Types_Traits_and_Lifetimes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ch10_Generic_Types_Traits_and_Lifetimes.md b/src/Ch10_Generic_Types_Traits_and_Lifetimes.md index 3d1160c..071a93c 100644 --- a/src/Ch10_Generic_Types_Traits_and_Lifetimes.md +++ b/src/Ch10_Generic_Types_Traits_and_Lifetimes.md @@ -249,7 +249,7 @@ error: could not compile `generics_demo` due to previous error ### 在结构体定义中 -这里还可以将结构体,定义为在其一个或多个字段中,运用 `<>` 语法来使用泛型参数。清单 10-6 定义了一个 `Point` 的结构体,来保存任意类型的 `x` 与 `y` 坐标值。 +咱们也可使用这种 `<>` 语法,将结构体定义为在其一个或多个字段中使用泛型参数。清单 10-6 定义了一个 `Point` 的结构体,来保存任意类型的 `x` 与 `y` 坐标值。 文件名:`src/main.rs`