]> Cypherpunks repositories - gostls13.git/commitdiff
fmt: fix a couple of documentation glitches.
authorRob Pike <r@golang.org>
Mon, 18 Jul 2011 01:44:27 +0000 (11:44 +1000)
committerRob Pike <r@golang.org>
Mon, 18 Jul 2011 01:44:27 +0000 (11:44 +1000)
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/4758050

src/pkg/fmt/print.go

index ba91bcd9f6651f3d87649f7b3976dad2c959ab86..53c39f18dab4c03fe628d405b0f2100c240e1a50 100644 (file)
@@ -53,7 +53,7 @@ type Formatter interface {
        Format(f State, c int)
 }
 
-// Stringer is implemented by any value that has a String method(),
+// 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.
@@ -61,7 +61,7 @@ type Stringer interface {
        String() string
 }
 
-// GoStringer is implemented by any value that has a GoString() method,
+// GoStringer is implemented by any value that has a GoString method,
 // which defines the Go syntax for that value.
 // The GoString method is used to print values passed as an operand
 // to a %#v format.