aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiogo <[email protected]>2020-05-23 15:29:14 +0100
committerdiogo <[email protected]>2020-05-23 15:29:14 +0100
commit849139e71a9e3156a1b6fc33d68c310e8425fd55 (patch)
tree2d48591186894e8e4cf330829e81b3abe7c89f59
parent260b341383a083c4e3491a65fb071d5124e28fa9 (diff)
fixed README
-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