From 52d168a67db08b01bb3311f871a2ee32302e4e9e Mon Sep 17 00:00:00 2001 From: TheLittleBoy Date: Sun, 29 Jun 2014 21:54:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=BC=96=E5=86=99=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 多写了一个空格,导致编译错误。 特此修正 --- source/chapter2/21_Protocols.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/chapter2/21_Protocols.md b/source/chapter2/21_Protocols.md index e1173fce..ea57a991 100755 --- a/source/chapter2/21_Protocols.md +++ b/source/chapter2/21_Protocols.md @@ -108,7 +108,7 @@ class Starship: FullyNamed { self.prefix = prefix } var fullName: String { - return (prefix ? prefix ! + " " : " ") + name + return (prefix ? prefix! + " " : " ") + name } } var ncc1701 = Starship(name: "Enterprise", prefix: "USS")