Skip to content
This repository
Browse code

fmt.Println corrected to fmt.Printf with formatted string.

  • Loading branch information...
commit 9377ec9aa974ae8a89b4fd1dedb5e07151cbd886 1 parent 1a097df
Timon Wong timonwong authored committed

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  more-interfaces.rst
2  more-interfaces.rst
Source Rendered
@@ -93,7 +93,7 @@ Let's use this comma-ok type assertion in an example:
93 93 } else if value, ok := element.(Person); ok {
94 94 fmt.Printf("list[%d] is a Person and its value is %s\n", index, value)
95 95 } else {
96   - fmt.Println("list[%d] is of a different type", index)
  96 + fmt.Printf("list[%d] is of a different type\n", index)
97 97 }
98 98 }
99 99 }

0 comments on commit 9377ec9

Please sign in to comment.
Something went wrong with that request. Please try again.