~tim/rust-ruby-wrap-data

c8f6c4be3f9b195ccc44bd652e9b8069f39052d8 — Tim Morgan 2 years ago 425e714
That reads better
2 files changed, 2 insertions(+), 2 deletions(-)

M README.md
M src/lib.rs
M README.md => README.md +1 -1
@@ 32,7 32,7 @@ struct MyValue {
fn alloc(klass: Value) -> Value {
    // build your data and put it on the heap
    let data = Box::new(MyValue { val: 1 });
    // call `wrap()`, passing your klass and data
    // call `wrap()`, passing your class and data
    ruby_wrap_data::wrap(klass, Some(data))
}


M src/lib.rs => src/lib.rs +1 -1
@@ 32,7 32,7 @@
//! fn alloc(klass: Value) -> Value {
//!     // build your data and put it on the heap
//!     let data = Box::new(MyValue { val: 1 });
//!     // call `wrap()`, passing your klass and data
//!     // call `wrap()`, passing your class and data
//!     ruby_wrap_data::wrap(klass, Some(data))
//! }
//!