From: Lucio De Re Date: Fri, 7 Sep 2012 17:24:55 +0000 (-0700) Subject: net,mime: Minor corrections to documentation comments. X-Git-Tag: go1.1rc2~2510 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7e414a5b017decee07f3ffa17943adcbb08aa83e;p=gostls13.git 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))