Permalink
Browse files

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

  • Loading branch information...
1 parent 1a097df commit 9377ec9aa974ae8a89b4fd1dedb5e07151cbd886 @timonwong timonwong committed with Apr 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 more-interfaces.rst
View
2 more-interfaces.rst
@@ -93,7 +93,7 @@ Let's use this comma-ok type assertion in an example:
} 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)
}
}
}

0 comments on commit 9377ec9

Please sign in to comment.