Merge pull request #2 from hoangtranwork/patch-1

Update README.md
This commit is contained in:
Fletcher Nichol 2017-11-08 13:18:48 -07:00 committed by GitHub
commit 2462b2d47d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ a name:
use names::{Generator, Name};
fn main() {
let mut generator = Generator::default(Name::Plain);
let mut generator = Generator::with_naming(Name::Plain);
println!("Your project is: {}", generator.next().unwrap());
// #=> "Your project is: rusty-nail"
@ -48,7 +48,7 @@ If more randomness is required, you can generate a name with a trailing
use names::{Generator, Name};
fn main() {
let mut generator = Generator::default(Name::Numbered);
let mut generator = Generator::with_naming(Name::Numbered);
println!("Your project is: {}", generator.next().unwrap());
// #=> "Your project is: pushy-pencil-5602"
}