From 0d9d741b1ba25c9e928ee1f84ce25091e337ad75 Mon Sep 17 00:00:00 2001 From: zack Date: Sat, 22 Sep 2012 10:56:54 +0800 Subject: [PATCH] change parameters type to func type --- 2.3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2.3.md b/2.3.md index 8065f08a..5fd49ed8 100644 --- a/2.3.md +++ b/2.3.md @@ -385,7 +385,7 @@ Go里面有一个不错的设计,就是回调函数,有点类似面向对象 } //声明的函数类型在这个地方当做了一个参数 - func filter(slice []int, f test_int) []int { + func filter(slice []int, f testInt) []int { var result []int for _, value := range slice { if f(value) {