Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
format_email_address/2 can return a single address or a list (#585)
`Formatter.format_email_address/2` can return an address or [list of addresses](https://github.com/thoughtbot/bamboo/blob/9e13937eb9a8f5d67c4c9c1d9009ae798f04d5c8/lib/bamboo/formatter.ex#L74). This commit updates the `@spec` for `format_email_address` to account for both single address and lists of addresses (via the [`Email.address_list()`](https://github.com/thoughtbot/bamboo/blob/4080bd67eb13347c57de50dc32fefaa473e6c423/lib/bamboo/email.ex#L75) type).
- Loading branch information