From 232f3abcccc43e84048b156a8ff70c7f238046a7 Mon Sep 17 00:00:00 2001 From: Uttarayan Mondal Date: Mon, 8 Mar 2021 18:48:11 +0530 Subject: [PATCH] Update README --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c99bb96..7bea74b 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,7 @@ Documentation of [ntext-rs](https://uttarayan21.github.io/ntext-rs) generated by A rust library to get numbers (u32) as words -`12345` -> `twelvethousandthreehundredfortyfive` -`81123` -> `eightyonethousandonehundredtwentythree` -`12` -> `twelve` +`12345 ` -> `twelvethousandthreehundredfortyfive` Add to cargo.toml @@ -21,11 +19,13 @@ Example program extern crate ntext; use ntext::to_text; fn main() { - println!("{}",to_text(12345)); + println!("{}",to_text!(12345)); + println!("{}",to_text!(12345," ")); } ``` which should output -`twelvethousandthreehundredfortyfive` +`twelvethousandthreehundredfortyfive` +`twelve thousand three hundred forty five` I will probably add formatting the text later