Reviewers: golang-dev1,
Message:
Hello
golan...@googlegroups.com,
I'd like you to review this change to
https://code.google.com/p/go/
Description:
fmt: tweak the explanation of Stringer to be more correct and less
specific
The String method is called whenever the printing operation wants a
string,
not just for %s and %v.
Please review this at
https://codereview.appspot.com/8638043/
Affected files:
src/pkg/fmt/print.go
Index: src/pkg/fmt/print.go
===================================================================
--- a/src/pkg/fmt/print.go
+++ b/src/pkg/fmt/print.go
@@ -56,7 +56,8 @@
// Stringer is implemented by any value that has a String method,
// which defines the ``native'' format for that value.
// The String method is used to print values passed as an operand
-// to a %s or %v format or to an unformatted printer such as Print.
+// to any format that accepts a string or to an unformatted printer
+// such as Print.
type Stringer interface {
String() string
}