From 62cc3bd465fd234c6d52dcf0cfb2bb5ba57b78c7 Mon Sep 17 00:00:00 2001 From: s7v7nislands Date: Tue, 16 Dec 2014 11:19:29 +0800 Subject: [PATCH] using fmt.Printf --- en/02.6.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/02.6.md b/en/02.6.md index 310c545f..e1b91a83 100644 --- a/en/02.6.md +++ b/en/02.6.md @@ -271,7 +271,7 @@ Let's use an example to see more clearly. } 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) } } }