From 84e933b97e381b3a1b49ba5947308573824783b4 Mon Sep 17 00:00:00 2001 From: Jay Hsu Date: Mon, 8 Apr 2024 11:33:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9C=80=E5=90=8E=E5=88=86=E6=94=AF?= =?UTF-8?q?=E7=9A=84=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/basic/match-pattern/all-patterns.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/match-pattern/all-patterns.md b/src/basic/match-pattern/all-patterns.md index 2d6058f5..75499b7c 100644 --- a/src/basic/match-pattern/all-patterns.md +++ b/src/basic/match-pattern/all-patterns.md @@ -162,7 +162,7 @@ fn main() { 首先是 `match` 第一个分支,指定匹配 `y` 为 `0` 的 `Point`; 然后第二个分支在第一个分支之后,匹配 `y` 不为 `0`,`x` 为 `0` 的 `Point`; -最后一个分支匹配 `x` 不为 `0`,`y` 也不为 `0` 的 `Point`。 +最后一个分支匹配任意 `x` 和 `y` 的 `Point`。 在这个例子中,值 `p` 因为其 `x` 包含 0 而匹配第二个分支,因此会打印出 `On the y axis at 7`。