From 6b51310c4f297b6b40dcc793d2395f0597b1dd90 Mon Sep 17 00:00:00 2001 From: Jihoon Ahn Date: Sat, 21 Dec 2024 10:11:31 +0900 Subject: [PATCH] Update index.md --- swift/index.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/swift/index.md b/swift/index.md index 07ce1b9..d05f22a 100644 --- a/swift/index.md +++ b/swift/index.md @@ -208,7 +208,8 @@ final class Company: NSObject { ``` #### Optional Binding -`guard else` is written on the same line if it does not impair readability or does not exceed 100 lines.
+`guard else` is written on the same line if it does not impair readability or does not exceed 100 lines. + And Prefer to use guard statements rather than if statements to minimize overlap. #### Defer