Correct method names in caveat comment

This commit is contained in:
Winni Neessen 2023-01-31 21:57:10 +01:00
parent fe28247f9b
commit fa0b9709f6
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D

4
msg.go
View file

@ -806,10 +806,10 @@ func (m *Msg) EmbedFile(n string, o ...FileOption) {
// 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
// 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) {
f := fileFromReader(n, r)
m.embeds = m.appendFile(m.embeds, f, o...)