From 29ba86bb157ae73968b6a9c13d745e08bb886968 Mon Sep 17 00:00:00 2001 From: Alan Date: Wed, 18 Jun 2014 10:39:33 +0800 Subject: [PATCH] Update 21_Protocols.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 表达有误 --- source/chapter2/21_Protocols.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/chapter2/21_Protocols.md b/source/chapter2/21_Protocols.md index 9a871cbf..674694b0 100755 --- a/source/chapter2/21_Protocols.md +++ b/source/chapter2/21_Protocols.md @@ -67,8 +67,7 @@ protocol SomeProtocol { } ``` -用类来实现协议时,使用`class`关键字来表示该属性为类成员;用结构体或枚举实现协议时,则使用`static`关键字来表示: - +在协议中定义类属性 (type property)时使用`class`前缀关键词,即使在结构体或者枚举中实现该协议时是使用`static`关键词: ```swift protocol AnotherProtocol { class var someTypeProperty: Int { get set }