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) } } }