Merge pull request #246 from TheLittleBoy/patch-10

代码编写错误修正
This commit is contained in:
ChildhoodAndy
2014-07-06 14:29:41 +08:00

View File

@ -73,9 +73,11 @@ protocol SomeProtocol {
protocol AnotherProtocol {
class var someTypeProperty: Int { get set }
}
```
如下所示,这是一个含有一个实例属性要求的协议:
```swift
protocol FullyNamed {
var fullName: String { get }
}
@ -135,7 +137,7 @@ protocol SomeProtocol {
如下所示,定义了含有一个实例方法的的协议。
```
```swift
protocol RandomNumberGenerator {
func random() -> Double
}