From 3aa05b82d314e66cf67210ec44e5060ace41c79a Mon Sep 17 00:00:00 2001 From: Yixin Luo <18810541851@163.com> Date: Mon, 29 Feb 2016 11:15:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E4=BE=8B=E4=BB=A3=E7=A0=81=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E5=B0=8F=E7=96=8F=E5=BF=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eBook/11.10.md | 2 +- eBook/11.9.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eBook/11.10.md b/eBook/11.10.md index 5d27cde..b98c178 100644 --- a/eBook/11.10.md +++ b/eBook/11.10.md @@ -102,7 +102,7 @@ func main() { ``` type: float64 -value: +value: 3.4 type: float64 kind: float64 value: 3.4 diff --git a/eBook/11.9.md b/eBook/11.9.md index 7b4432b..1be83a9 100644 --- a/eBook/11.9.md +++ b/eBook/11.9.md @@ -1,4 +1,4 @@ -# 11.9 空接口 +# 11.9 空接口 ## 11.9.1 概念 @@ -164,7 +164,7 @@ var interfaceSlice []interface{} = dataSlice var dataSlice []myType = FuncReturnSlice() var interfaceSlice []interface{} = make([]interface{}, len(dataSlice)) for ix, d := range dataSlice { - interfaceSlice[i] = d + interfaceSlice[ix] = d } ```