Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DaviRain-Su authored and KokaKiwi committed Aug 26, 2022
1 parent aa8f300 commit c333cf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ println!("{}", hex_string); // Prints "48656c6c6f20776f726c6421"
Decoding a `String`

```rust
let decoded_string = hex::decode("48656c6c6f20776f726c6421");
let decoded_string = String::from_utf8(hex::decode("48656c6c6f20776f726c6421").unwrap()).unwrap();

println!("{}", decoded_string); // Prints "Hello world!"
```
Expand Down

0 comments on commit c333cf5

Please sign in to comment.