Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
7e414a5b
Commit
7e414a5b
authored
Sep 07, 2012
by
Lucio De Re
Committed by
Rob Pike
Sep 07, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net,mime: Minor corrections to documentation comments.
R=r CC=dsymonds, gobot, golang-dev
https://golang.org/cl/6495085
parent
cbc9ab75
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
multipart.go
src/pkg/mime/multipart/multipart.go
+1
-1
message.go
src/pkg/net/mail/message.go
+2
-1
No files found.
src/pkg/mime/multipart/multipart.go
View file @
7e414a5b
...
...
@@ -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 r
eader
using the
// given MIME boundary.
func
NewReader
(
reader
io
.
Reader
,
boundary
string
)
*
Reader
{
b
:=
[]
byte
(
"
\r\n
--"
+
boundary
+
"--"
)
...
...
src/pkg/net/mail/message.go
View file @
7e414a5b
...
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment