~tim/rust-ruby-wrap-data

fe179edbc5ff88c89f09f8df37555cee1c1570b0 — Tim Morgan 2 years ago ae0bdf4
Improve example
1 files changed, 1 insertions(+), 0 deletions(-)

M src/lib.rs
M src/lib.rs => src/lib.rs +1 -0
@@ 134,6 134,7 @@ pub fn wrap<T>(klass: Value, data: Option<Box<T>>) -> Value {
///
/// ```rust,ignore
/// let data: Option<Box<MyValue>> = ruby_wrap_data::remove(thing);
/// // do something
/// ruby_wrap_data::set(thing, data.unwrap());
/// ```
pub fn remove<T>(object: Value) -> Option<Box<T>> {