diff --git a/README.md b/README.md index 3df18f8..27a269b 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ A compact encoder / decoder pair that uses an binary zero-fluff encoding scheme. The size of the encoded object will be the same or smaller than the size that the object takes up in memory in a running Rust program. +## Example + ```rust extern crate binary_encode; extern crate serialize; diff --git a/readme.dev.md b/readme.dev.md index 13654fa..cd1ce7a 100644 --- a/readme.dev.md +++ b/readme.dev.md @@ -4,4 +4,6 @@ A compact encoder / decoder pair that uses an binary zero-fluff encoding scheme. The size of the encoded object will be the same or smaller than the size that the object takes up in memory in a running Rust program. +## Example + ^code(./examples/basic.rs)