Skip to content

Commit 2b7b0a4

Browse files
jkbrinsolpil
authored andcommitted
Fixed error in example in README.md
in call to zeptomail.Email(), the "from" argument is not a list, while the "to" argument is. These were backwards in the example.
1 parent 83ca48d commit 2b7b0a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ pub fn main() {
2525
2626
// Create an email to send
2727
let email = zeptomail.Email(
28-
from: [Addressee("Mike", "mike@example.com")],
29-
to: Addressee("Joe", "joe@example.com"),
28+
from: Addressee("Mike", "mike@example.com"),
29+
to: [Addressee("Joe", "joe@example.com")],
3030
reply_to: [],
3131
cc: [Addressee("Robert", "robert@example.com")],
3232
bcc: [],

0 commit comments

Comments
 (0)