From 14ce0489c84167bd1a1bba4781c56d6c1c333009 Mon Sep 17 00:00:00 2001 From: Ding Date: Sat, 24 Dec 2016 23:07:56 +0800 Subject: [PATCH] fix 10.6.9 wrong cannot use i (type *Integer) as type int in argument to strconv.Itoa --- eBook/10.6.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eBook/10.6.md b/eBook/10.6.md index 68c922e..6059f15 100644 --- a/eBook/10.6.md +++ b/eBook/10.6.md @@ -648,7 +648,7 @@ Go 不需要一个显式的类定义,如同 Java、C++、C# 等那样,相反 ```go type Integer int func (i *Integer) String() string { - return strconv.Itoa(i) + return strconv.Itoa(int(*i)) } ```