From 915995f4154c3293b17ef1fe5f3aa50f56356c38 Mon Sep 17 00:00:00 2001 From: googlegis Date: Sat, 12 Jul 2014 18:11:55 +0800 Subject: [PATCH] change haxArea to hasArea --- 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 8efa003a..f803d843 100755 --- a/source/chapter2/21_Protocols.md +++ b/source/chapter2/21_Protocols.md @@ -573,7 +573,7 @@ wishHappyBirthday(birthdayPerson) > 注意: `@objc`用来表示协议是可选的,也可以用来表示暴露给`Objective-C`的代码,此外,`@objc`型协议只对`类`有效,因此只能在`类`中检查协议的一致性。详情查看*[Using Siwft with Cocoa and Objectivei-c](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/BuildingCocoaApps/index.html#//apple_ref/doc/uid/TP40014216)*。 -如下所示,定义了`Circle`和`Country`类,它们都遵循了`haxArea`协议 +如下所示,定义了`Circle`和`Country`类,它们都遵循了`hasArea`协议 ```swift class Circle: HasArea {