~tim/rust-ruby-wrap-data

ae0bdf4657011b3f87c341d2a28c430d88c70d4a — Tim Morgan 2 years ago f89f008
Use proper doc example code modifier
1 files changed, 2 insertions(+), 2 deletions(-)

M src/lib.rs
M src/lib.rs => src/lib.rs +2 -2
@@ 125,14 125,14 @@ pub fn wrap<T>(klass: Value, data: Option<Box<T>>) -> Value {
/// You will need to specify the data type of the variable since it
/// cannot be inferred:
///
/// ```compile_fail
/// ```rust,ignore
/// let data: Option<Box<MyValue>> = ruby_wrap_data::remove(thing);
/// ```
///
/// Also note, if you wish to peek at the data without removing it,
/// you will need to put it back using `set`, like this:
///
/// ```compile_fail
/// ```rust,ignore
/// let data: Option<Box<MyValue>> = ruby_wrap_data::remove(thing);
/// ruby_wrap_data::set(thing, data.unwrap());
/// ```