Skip to content

Commit 953082e

Browse files
authored
Merge pull request #1417 from LeopoldChou/main
fix: GuideTour semantic adjustment
2 parents acd6da3 + 30288eb commit 953082e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift-6.docc/GuidedTour/GuidedTour.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ print(teamScore)
322322
<< Would you like a jelly baby?
323323
-->
324324

325-
`if` 语句中,条件必须是一个布尔表达式——这意味着像 `if score { ... }` 这样的代码是错误的,而不是隐式地将 `score` 与零进行比较
325+
`if` 语句中,条件必须是一个布尔表达式——这意味着像 `if score { ... }` 这样的代码是错误的,这不是 `score` 与零进行隐式比较的方法
326326

327327
你可以在赋值操作符(`=`)或 `return` 之后使用 `if``switch`,以根据条件选择一个值。
328328

0 commit comments

Comments
 (0)