Update 11.1.md (#466)

去掉多余的右括号
This commit is contained in:
Sarlor
2018-05-19 05:36:17 +08:00
committed by 无闻
parent 52d20c99f1
commit e837adafa7

View File

@@ -150,7 +150,7 @@ func main() {
Shape details: &{5}
Area of this shape is: 25
在调用 `shapes[n].Area()) ` 这个时,只知道 `shapes[n]` 是一个 `Shaper` 对象,最后它摇身一变成为了一个 `Square``Rectangle` 对象,并且表现出了相对应的行为。
在调用 `shapes[n].Area() ` 这个时,只知道 `shapes[n]` 是一个 `Shaper` 对象,最后它摇身一变成为了一个 `Square``Rectangle` 对象,并且表现出了相对应的行为。
也许从现在开始你将看到通过接口如何产生 **更干净**、**更简单** 及 **更具有扩展性** 的代码。在 11.12.3 中将看到在开发中为类型添加新的接口是多么的容易。