From 3ca46fbf6dbe076197148574e823ea539b12945f Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Tue, 19 Nov 2019 21:24:50 +0100 Subject: [PATCH] docs: Internet #email, #domain do not control TLD (#1837) - The domain: keyword option passes in 'example' and gets 'example.name' in the generated domain name - There is no current control over the top-level domain - This documentation change conveys that by using different top-level domains in the examples --- doc/default/internet.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/default/internet.md b/doc/default/internet.md index d1c0fb3ce0..8874227771 100644 --- a/doc/default/internet.md +++ b/doc/default/internet.md @@ -5,7 +5,7 @@ Faker::Internet.email #=> "eliza@mann.net" Faker::Internet.email(name: 'Nancy') #=> "nancy@terry.biz" Faker::Internet.email(name: 'Janelle Santiago', separators: '+') #=> janelle+santiago@becker.com" -Faker::Internet.email(domain: 'example.com') #=> alice@example.com" +Faker::Internet.email(domain: 'example') #=> alice@example.name" # Keyword arguments: name Faker::Internet.free_email #=> "freddy@gmail.com" @@ -36,8 +36,8 @@ Faker::Internet.password(min_length: 10, max_length: 20, mix_case: true, special # Keyword arguments: subdomain, domain Faker::Internet.domain_name #=> "effertz.info" -Faker::Internet.domain_name(domain: "example.com") #=> "example.com" -Faker::Internet.domain_name(subdomain: true, domain: "example.com") #=> "horse.example.com" +Faker::Internet.domain_name(domain: "example") #=> "example.net" +Faker::Internet.domain_name(subdomain: true, domain: "example") #=> "horse.example.org" Faker::Internet.domain_word #=> "haleyziemann"