From 849139e71a9e3156a1b6fc33d68c310e8425fd55 Mon Sep 17 00:00:00 2001 From: diogo Date: Sat, 23 May 2020 15:29:14 +0100 Subject: fixed README --- README.md | 8 ++++++++ src/lib.rs | 14 +++++++------- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 73c5212..1104bc4 100644 --- a/README.md +++ b/README.md @@ -1 +1,9 @@ # rhex + +Rust crate to decode and encode hexadecimal. + +##Examples +```rust +let hex_string = "1a2b3c"; +let data = rhex::decode_hex(&hex_string).unwrap(); +``` diff --git a/src/lib.rs b/src/lib.rs index e5597e3..eddceef 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,10 +1,10 @@ -///Rust crate to decode and encode hexadecimal. -/// -///#Examples -///``` -///let hex_string = "1a2b3c"; -///let data = rhex::decode_hex(&hex_string).unwrap(); -///``` +//!Rust crate to decode and encode hexadecimal. +//! +//!#Examples +//!``` +//!let hex_string = "1a2b3c"; +//!let data = rhex::decode_hex(&hex_string).unwrap(); +//!``` #[derive(Debug)] ///Possible errors that occur during decoding -- cgit