From fc4bdeefc001971664a23ed0c1e1f31ebc3c769e Mon Sep 17 00:00:00 2001 From: zdd Date: Tue, 30 Jun 2015 00:38:13 +0800 Subject: [PATCH] Update 02.6.md fix typo --- zh/02.6.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh/02.6.md b/zh/02.6.md index 64e3edd7..7b527697 100644 --- a/zh/02.6.md +++ b/zh/02.6.md @@ -268,7 +268,7 @@ interface的变量可以持有任意实现该interface类型的对象,这给 } else if value, ok := element.(Person); ok { fmt.Printf("list[%d] is a Person and its value is %s\n", index, value) } else { - fmt.Println("list[%d] is of a different type", index) + fmt.Printf("list[%d] is of a different type\n", index) } } }