Change cargo.toml and readme.md

This commit is contained in:
Uttarayan Mondal
2021-03-09 00:26:12 +05:30
parent cc82c47628
commit 1223252111
2 changed files with 8 additions and 5 deletions
+6 -1
View File
@@ -3,5 +3,10 @@ name = "ntext"
version = "0.2.0" version = "0.2.0"
authors = ["Uttarayan Mondal <uttarayan21@gmail.com>"] authors = ["Uttarayan Mondal <uttarayan21@gmail.com>"]
edition = "2018" edition = "2018"
description = "A rust library to write numbers as words"
readme = "README.md"
documentation = "https://uttarayan21.github.io/ntext-rs"
repository = "https://github.com/uttarayan21/ntext-rs"
license-file = "LICENSE"
publish = false
[dependencies]
+1 -3
View File
@@ -20,12 +20,10 @@ extern crate ntext;
use ntext::to_text; use ntext::to_text;
fn main() { fn main() {
println!("{}",to_text!(12345)); println!("{}",to_text!(12345));
println!("{}",to_text!(12345," "));
} }
``` ```
which should output which should output
`twelvethousandthreehundredfortyfive` `twelvethousandthreehundredfortyfive`
`twelve thousand three hundred forty five`
I will probably add formatting the text later Check the [documentation](https://uttarayan21.github.io/ntext-rs) which has more examples and is usually up to date.