Skip to content

Commit fc4bdee

Browse files
committed
Update 02.6.md
fix typo
1 parent b7e2ee1 commit fc4bdee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zh/02.6.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ interface的变量可以持有任意实现该interface类型的对象,这给
268268
} else if value, ok := element.(Person); ok {
269269
fmt.Printf("list[%d] is a Person and its value is %s\n", index, value)
270270
} else {
271-
fmt.Println("list[%d] is of a different type", index)
271+
fmt.Printf("list[%d] is of a different type\n", index)
272272
}
273273
}
274274
}

0 commit comments

Comments
 (0)