mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-22 13:50:49 +01:00
Correct method names in caveat comment
This commit is contained in:
parent
fe28247f9b
commit
fa0b9709f6
1 changed files with 2 additions and 2 deletions
4
msg.go
4
msg.go
|
@ -806,10 +806,10 @@ func (m *Msg) EmbedFile(n string, o ...FileOption) {
|
||||||
|
|
||||||
// EmbedReader adds an embedded File from an io.Reader to the Msg
|
// EmbedReader adds an embedded File from an io.Reader to the Msg
|
||||||
//
|
//
|
||||||
// CAVEAT: For AttachReader to work it has to read all data of the io.Reader
|
// CAVEAT: For EmbedReader to work it has to read all data of the io.Reader
|
||||||
// into memory first, so it can seek through it. Using larger amounts of
|
// into memory first, so it can seek through it. Using larger amounts of
|
||||||
// data on the io.Reader should be avoided. For such, it is recommeded to
|
// data on the io.Reader should be avoided. For such, it is recommeded to
|
||||||
// either use AttachFile or AttachReadSeeker instead
|
// either use EmbedFile or EmbedReadSeeker instead
|
||||||
func (m *Msg) EmbedReader(n string, r io.Reader, o ...FileOption) {
|
func (m *Msg) EmbedReader(n string, r io.Reader, o ...FileOption) {
|
||||||
f := fileFromReader(n, r)
|
f := fileFromReader(n, r)
|
||||||
m.embeds = m.appendFile(m.embeds, f, o...)
|
m.embeds = m.appendFile(m.embeds, f, o...)
|
||||||
|
|
Loading…
Reference in a new issue