From fac86b6c159cd0fe591a338e51393acb24263adf Mon Sep 17 00:00:00 2001 From: Respawnz <47511522+Respawnz@users.noreply.github.com> Date: Mon, 8 Apr 2019 22:32:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=91=E4=BA=86=E4=B8=A4=E4=B8=AA=E7=A9=BA?= =?UTF-8?q?=E6=A0=BC=20(#599)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eBook/11.14.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eBook/11.14.md b/eBook/11.14.md index 6d04825..9bcbf26 100644 --- a/eBook/11.14.md +++ b/eBook/11.14.md @@ -69,7 +69,7 @@ allNewBMWs := allCars.FindAll(func(car *Car) bool { 4)我们也可以根据参数返回不同的函数。也许我们想根据不同的厂商添加汽车到不同的集合,但是这(这种映射关系)可能会是会改变的。所以我们可以定义一个函数来产生特定的添加函数和 map 集: ```go -func MakeSortedAppender(manufacturers[]string)(func(car*Car),map[string]Cars) { +func MakeSortedAppender(manufacturers []string)(func(car *Car),map[string]Cars) { // Prepare maps of sorted cars. sortedCars := make(map[string]Cars) for _, m := range manufacturers {