diff options
| author | diogo <[email protected]> | 2020-05-23 15:29:14 +0100 |
|---|---|---|
| committer | diogo <[email protected]> | 2020-05-23 15:29:14 +0100 |
| commit | 849139e71a9e3156a1b6fc33d68c310e8425fd55 (patch) | |
| tree | 2d48591186894e8e4cf330829e81b3abe7c89f59 | |
| parent | 260b341383a083c4e3491a65fb071d5124e28fa9 (diff) | |
fixed README
| -rw-r--r-- | README.md | 8 | ||||
| -rw-r--r-- | src/lib.rs | 14 |
2 files changed, 15 insertions, 7 deletions
| @@ -1 +1,9 @@ | |||
| 1 | # rhex | 1 | # rhex |
| 2 | |||
| 3 | Rust crate to decode and encode hexadecimal. | ||
| 4 | |||
| 5 | ##Examples | ||
| 6 | ```rust | ||
| 7 | let hex_string = "1a2b3c"; | ||
| 8 | let data = rhex::decode_hex(&hex_string).unwrap(); | ||
| 9 | ``` | ||
| @@ -1,10 +1,10 @@ | |||
| 1 | ///Rust crate to decode and encode hexadecimal. | 1 | //!Rust crate to decode and encode hexadecimal. |
| 2 | /// | 2 | //! |
| 3 | ///#Examples | 3 | //!#Examples |
| 4 | ///``` | 4 | //!``` |
| 5 | ///let hex_string = "1a2b3c"; | 5 | //!let hex_string = "1a2b3c"; |
| 6 | ///let data = rhex::decode_hex(&hex_string).unwrap(); | 6 | //!let data = rhex::decode_hex(&hex_string).unwrap(); |
| 7 | ///``` | 7 | //!``` |
| 8 | 8 | ||
| 9 | #[derive(Debug)] | 9 | #[derive(Debug)] |
| 10 | ///Possible errors that occur during decoding | 10 | ///Possible errors that occur during decoding |
