From 2e5a211a89447797f8aec234740e86aee4c8e646 Mon Sep 17 00:00:00 2001 From: Yongzheng Lai Date: Wed, 5 Aug 2015 17:42:28 +0800 Subject: [PATCH] Update 01_The_Basics.md missing type and equal `=` --- source/chapter2/01_The_Basics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/chapter2/01_The_Basics.md b/source/chapter2/01_The_Basics.md index 0e04b550..4c866bc0 100755 --- a/source/chapter2/01_The_Basics.md +++ b/source/chapter2/01_The_Basics.md @@ -670,7 +670,7 @@ if let constantName = someOptional, anotherConstantName = someOtherOptional { ```swift let possibleString: String? = "An optional string." -let forcedString: possibleString! // 需要惊叹号来获取值 +let forcedString:String = possibleString! // 需要惊叹号来获取值 let assumedString: String! = "An implicitly unwrapped optional string." let implicitString: String = assumedString // 不需要感叹号