Skip to content

Commit

Permalink
Add line to show min_length argument for user_name
Browse files Browse the repository at this point in the history
It took me a while to understand that I could specify a minimum length. Even after looking at the source.
So we could add it to the docs! Cheers.
  • Loading branch information
dceluis authored and stympy committed Dec 7, 2017
1 parent 28eaeb6 commit 2a5c591
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/internet.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ Faker::Internet.user_name('Nancy Johnson', %w(. _ -)) #=> "johnson-nancy"
# Optional arguments: min_length=5, max_length=8
Faker::Internet.user_name(5..8)

# Optional argument min_length=8
Faker::Internet.user_name(8)

# Optional arguments: min_length=8, max_length=16
Faker::Internet.password #=> "vg5msvy1uerg7"

Expand Down

0 comments on commit 2a5c591

Please sign in to comment.