Skip to content

Commit

Permalink
Fix example for MandrillHelper.put_param/3 (#593)
Browse files Browse the repository at this point in the history
The example for Bamboo.MandrillHelper.put_param/3 is incorrectly 
calling on a non-existent put_param/4

The example passes email twice to the function:
- First through the pipeline
- Second through the function argument

This commit corrects the example in the documentation.
  • Loading branch information
shawnleong committed Mar 26, 2021
1 parent 69d48e8 commit 7e84187
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/bamboo/adapters/mandrill_helper.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ defmodule Bamboo.MandrillHelper do
## Example
email
|> put_param(email, "track_opens", true)
|> put_param(email, "merge_vars", [
|> put_param("track_opens", true)
|> put_param("merge_vars", [
%{
rcpt: "recipient.email@example.com",
vars: [
Expand Down Expand Up @@ -48,7 +48,7 @@ defmodule Bamboo.MandrillHelper do
A convenience function for:
email
|> put_param(email, "merge_vars", [
|> put_param("merge_vars", [
%{
rcpt: "user1@example.com",
vars: [
Expand Down

0 comments on commit 7e84187

Please sign in to comment.