]> Cypherpunks repositories - gostls13.git/commitdiff
io: minor improvements to doc comment on WriteString.
authorDavid Symonds <dsymonds@golang.org>
Fri, 29 May 2015 04:29:57 +0000 (14:29 +1000)
committerDavid Symonds <dsymonds@golang.org>
Fri, 29 May 2015 04:33:15 +0000 (04:33 +0000)
Change-Id: Iddcd0cfb8f2c2f1c4ad7a94b50a9f65b543862c4
Reviewed-on: https://go-review.googlesource.com/10473
Reviewed-by: Minux Ma <minux@golang.org>
src/io/io.go

index 290fc8824b211a4d656fe8cd965581a884ac166b..0fadd9f8b69b8bf5aba50feee4a1599bd7655efe 100644 (file)
@@ -273,8 +273,8 @@ type stringWriter interface {
        WriteString(s string) (n int, err error)
 }
 
-// WriteString writes the contents of the string s to w, which accepts an array of bytes.
-// If w already implements a WriteString method, it is invoked directly.
+// WriteString writes the contents of the string s to w, which accepts a slice of bytes.
+// If w implements a WriteString method, it is invoked directly.
 func WriteString(w Writer, s string) (n int, err error) {
        if sw, ok := w.(stringWriter); ok {
                return sw.WriteString(s)