]> Cypherpunks repositories - gostls13.git/commitdiff
net,mime: Minor corrections to documentation comments.
authorLucio De Re <lucio.dere@gmail.com>
Fri, 7 Sep 2012 17:24:55 +0000 (10:24 -0700)
committerRob Pike <r@golang.org>
Fri, 7 Sep 2012 17:24:55 +0000 (10:24 -0700)
R=r
CC=dsymonds, gobot, golang-dev
https://golang.org/cl/6495085

src/pkg/mime/multipart/multipart.go
src/pkg/net/mail/message.go

index e9e337b9222bd6124b6f3538bb6d2a8a3a1fc111..fb07e1a56d52985ede360e57750cbc9e8e6f23c8 100644 (file)
@@ -71,7 +71,7 @@ func (p *Part) parseContentDisposition() {
        }
 }
 
-// NewReader creates a new multipart Reader reading from r using the
+// NewReader creates a new multipart Reader reading from reader using the
 // given MIME boundary.
 func NewReader(reader io.Reader, boundary string) *Reader {
        b := []byte("\r\n--" + boundary + "--")
index b610ccf3f048e16910c93ead22bfe566f4190e92..93cc4d1edd48ecb266e94600a945b4f976902525 100644 (file)
@@ -47,7 +47,8 @@ type Message struct {
 }
 
 // ReadMessage reads a message from r.
-// The headers are parsed, and the body of the message will be reading from r.
+// The headers are parsed, and the body of the message will be available
+// for reading from r.
 func ReadMessage(r io.Reader) (msg *Message, err error) {
        tp := textproto.NewReader(bufio.NewReader(r))