Skip to content

Commit 553bc85

Browse files
committed
docs: update readme
1 parent 8cc05b0 commit 553bc85

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

README.md

-4
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,8 @@ You can parse a string into a Nano ID using [`Nanoid::try_from_str`], [`std::str
3737

3838
```rust
3939
use nid::Nanoid;
40-
41-
// From &str
4240
let id: Nanoid = Nanoid::try_from_str("K8N4Q7MNmeHJ-OHHoVDcz")?;
4341
let id: Nanoid = "3hYR3muA_xvjMrrrqFWxF".parse()?;
44-
45-
// From String
4642
let id: Nanoid = "iH26rJ8CpRz-gfIh7TSRu".to_string().try_into()?;
4743
```
4844

0 commit comments

Comments
 (0)