From 30288ebb2dfb9668882e82a99b544d5e223ca429 Mon Sep 17 00:00:00 2001 From: leopold Date: Thu, 12 Jun 2025 10:25:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20GuideTour=20=E5=86=85=E5=AE=B9=E4=B8=AD?= =?UTF-8?q?=E6=96=87=E8=AF=AD=E5=BA=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- swift-6.docc/GuidedTour/GuidedTour.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swift-6.docc/GuidedTour/GuidedTour.md b/swift-6.docc/GuidedTour/GuidedTour.md index ed7a5d8e3..6e268e431 100644 --- a/swift-6.docc/GuidedTour/GuidedTour.md +++ b/swift-6.docc/GuidedTour/GuidedTour.md @@ -322,7 +322,7 @@ print(teamScore) << Would you like a jelly baby? --> -在 `if` 语句中,条件必须是一个布尔表达式——这意味着像 `if score { ... }` 这样的代码是错误的,而不是隐式地将 `score` 与零进行比较。 +在 `if` 语句中,条件必须是一个布尔表达式——这意味着像 `if score { ... }` 这样的代码是错误的,这不是 `score` 与零进行隐式比较的方法。 你可以在赋值操作符(`=`)或 `return` 之后使用 `if` 或 `switch`,以根据条件选择一个值。