Skip to content

Commit

Permalink
Update documentation for sequence/2 (#260)
Browse files Browse the repository at this point in the history
Corrects discrepancy between example and comment.
  • Loading branch information
lsigauke authored and germsvel committed Nov 14, 2017
1 parent c014e5d commit 350cf02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ex_machina.ex
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ defmodule ExMachina do
def user_factory do
%{
# Will generate "me-0@example.com" then "me-1@example.com", etc.
# Will generate "me-0@foo.com" then "me-1@foo.com", etc.
email: sequence(:email, &"me-\#{&1}@foo.com"),
# Will generate "admin" then "user", "other", "admin" etc.
role: sequence(:role, ["admin", "user", "other"])
Expand Down

0 comments on commit 350cf02

Please sign in to comment.