From fa0b9709f68805563f17de9f03ea86285c5bea7b Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Tue, 31 Jan 2023 21:57:10 +0100 Subject: [PATCH] Correct method names in caveat comment --- msg.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/msg.go b/msg.go index 7706853..27334b5 100644 --- a/msg.go +++ b/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 // -// 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...)