aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucio De Re <lucio.dere@gmail.com>2012-09-22 05:55:04 +1000
committerRob Pike <r@golang.org>2012-09-22 05:55:04 +1000
commit915635ed41d91a3c5df6ba4100367dd973cc4830 (patch)
treee8b998352ce3c7f1171de6e763939c5c46c40ade
parent0809931b2f3fe52338af686188f9e4c5cdede96b (diff)
downloadgo-915635ed41d91a3c5df6ba4100367dd973cc4830.tar.gz
go-915635ed41d91a3c5df6ba4100367dd973cc4830.zip
[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 »»»
-rw-r--r--src/pkg/mime/multipart/multipart.go2
-rw-r--r--src/pkg/net/mail/message.go3
2 files changed, 3 insertions, 2 deletions
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))