Skip to content

Commit c60afbd

Browse files
docs: update separator param to match with an example to Faker::Internet#username method (#2882)
1 parent bd5cb78 commit c60afbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/faker/default/internet.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def email(name: nil, separators: nil, domain: nil)
6060
# Faker::Internet.username(specifier: 10) #=> "lulu.goodwin"
6161
# Faker::Internet.username(specifier: 5..10) #=> "morris"
6262
# Faker::Internet.username(specifier: 5..10) #=> "berryberry"
63-
# Faker::Internet.username(specifier: 20, separators: ['-']) #=> "nikki_sawaynnikki_saway"
63+
# Faker::Internet.username(specifier: 20, separators: ['_']) #=> "nikki_sawaynnikki_saway"
6464
def username(specifier: nil, separators: %w[. _])
6565
with_locale(:en) do
6666
return shuffle(specifier.scan(/[[:word:]]+/)).join(sample(separators)).downcase if specifier.respond_to?(:scan)

0 commit comments

Comments
 (0)