diff options
| -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 |
