Skip to content

Commit

Permalink
updated readme and bumped the version to being able to release on cra…
Browse files Browse the repository at this point in the history
…tes.io
  • Loading branch information
YouKnow-sys committed Jun 16, 2023
1 parent 9ac0b46 commit 91daafc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ar-reshaper"
version = "0.3.0"
version = "0.3.1"
authors = ["Saeid Ghafari <saeid025@yahoo.com>"]
edition = "2021"
description = "Reconstruct Arabic sentences to be used in applications that don't support Arabic script."
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ let lines = [
println!("{:#?}", reshaper.reshape_lines(lines));
// or you can just use reshape method in a loop... the choice is yours.
```
reshape strings on a iterator
```rust
use ar_reshaper::ArabicReshaperExt;

for line in ["یک", "دو"].iter().reshape_default() {
println!("{line}");
}
```
You can check **example** or **test** directory for more examples.

# Optional features:
Expand Down

0 comments on commit 91daafc

Please sign in to comment.