From b6c7772991f1d456ebeb2d52dd6add319ae36bbc Mon Sep 17 00:00:00 2001 From: TheLittleBoy Date: Sun, 29 Jun 2014 23:18:29 +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..68c0ff75 100755 --- a/source/chapter2/21_Protocols.md +++ b/source/chapter2/21_Protocols.md @@ -407,7 +407,7 @@ println(d12.asText()) `SnakesAndLadders`类也可以通过`扩展`的方式来遵循协议: ```swift -extension SnakeAndLadders: TextRepresentable { +extension SnakesAndLadders: TextRepresentable { func asText() -> String { return "A game of Snakes and Ladders with \(finalSquare) squares" }