mirror of https://github.com/golang/go.git
net,mime: Minor corrections to documentation comments.
R=r CC=dsymonds, gobot, golang-dev https://golang.org/cl/6495085
This commit is contained in:
parent
cbc9ab75cb
commit
7e414a5b01
|
|
@ -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 + "--")
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue