Skip to content

Commit fa084d0

Browse files
authored
no main() needed
1 parent deb1184 commit fa084d0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ simdutf8 = { version = "0.0.1"}
2020
Use it just like `std::str::from_utf8`:
2121
```rust
2222
use simdutf8::basic::{from_utf8, Utf8Error};
23-
fn main() {
24-
println!("{}", from_utf8(b"I \xE2\x9D\xA4\xEF\xB8\x8F UTF-8!").unwrap());
25-
}
23+
24+
println!("{}", from_utf8(b"I \xE2\x9D\xA4\xEF\xB8\x8F UTF-8!").unwrap());
2625
```
2726

2827
Put `simdutf8 = "0.1.0"` in your Cargo.toml file and use `simdutf8::basic::from_utf8` as a drop-in replacement for

0 commit comments

Comments
 (0)