From bbec80db439ec02829f6c00faa2c6c7fce969c7f Mon Sep 17 00:00:00 2001 From: annieversary Date: Mon, 31 Oct 2022 19:25:19 +0100 Subject: [PATCH] update readme --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e2f05a1..06dc0c5 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ incantata is a rust library that generates random words according to a provided structure +there's also a cli, you can run it with `cargo r`. it will generate ten words every time you press enter + ```rust use incantata::*; @@ -18,8 +20,8 @@ fn main() { // allowed characters for the nucleus nucleus_dict: VOCALS .chars() - .cycle() - .take(VOCALS.len() * 5) + // .cycle() + // .take(VOCALS.len() * 5) // .chain(VOCALS_ACCENTS.chars()) .collect(), @@ -38,7 +40,7 @@ fn main() { // generate 10 words for _ in 0..10 { - println!("{}", incantata(&s)); + println!("{}", s.generate()); } } ```