From: Lucio De Re Date: Fri, 21 Sep 2012 19:55:04 +0000 (+1000) Subject: [release-branch.go1] net,mime: Minor corrections to documentation comments. X-Git-Tag: go1.0.3~35 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=915635ed41d91a3c5df6ba4100367dd973cc4830;p=gostls13.git [release-branch.go1] net,mime: Minor corrections to documentation comments. ««« backport 3da1d25fd216 net,mime: Minor corrections to documentation comments. R=r CC=dsymonds, gobot, golang-dev https://golang.org/cl/6495085 »»» --- diff --git a/src/pkg/mime/multipart/multipart.go b/src/pkg/mime/multipart/multipart.go index e9e337b922..fb07e1a56d 100644 --- a/src/pkg/mime/multipart/multipart.go +++ b/src/pkg/mime/multipart/multipart.go @@ -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 + "--") diff --git a/src/pkg/net/mail/message.go b/src/pkg/net/mail/message.go index b610ccf3f0..93cc4d1edd 100644 --- a/src/pkg/net/mail/message.go +++ b/src/pkg/net/mail/message.go @@ -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))