aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md8
-rw-r--r--src/lib.rs14
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 @@
1# rhex 1# rhex
2
3Rust crate to decode and encode hexadecimal.
4
5##Examples
6```rust
7let hex_string = "1a2b3c";
8let data = rhex::decode_hex(&hex_string).unwrap();
9```
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 @@
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