From 8a88a51bf16114c8b8b1d7ee398dc2a4c76223d1 Mon Sep 17 00:00:00 2001 From: Linsh Date: Thu, 25 Aug 2022 14:32:32 +0800 Subject: [PATCH] Fix a typo in code comment. --- zh-CN/src/method.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-CN/src/method.md b/zh-CN/src/method.md index 5902f1d..fcdfd1c 100644 --- a/zh-CN/src/method.md +++ b/zh-CN/src/method.md @@ -73,7 +73,7 @@ impl Pair { fn main() { let rectangle = Rectangle { - // 关联函数的调用不是通过点操作符,而是使用 `::~ + // 关联函数的调用不是通过点操作符,而是使用 `::` p1: Point::origin(), p2: Point::new(3.0, 4.0), }; @@ -258,4 +258,4 @@ fn main() { @todo -> 你可以在[这里](https://github.com/sunface/rust-by-practice/blob/master/solutions/method.md)找到答案(在 solutions 路径下) \ No newline at end of file +> 你可以在[这里](https://github.com/sunface/rust-by-practice/blob/master/solutions/method.md)找到答案(在 solutions 路径下)