fix doc
This commit is contained in:
parent
217ca79930
commit
35c2caab07
@ -38,8 +38,7 @@ use crate::{
|
|||||||
/// builder
|
/// builder
|
||||||
/// .with_name("TestStruct")
|
/// .with_name("TestStruct")
|
||||||
/// .with_fn("new_ts", Self::new)
|
/// .with_fn("new_ts", Self::new)
|
||||||
/// .with_fn("update", Self::update)
|
/// .with_fn("update", Self::update);
|
||||||
/// .with_get_set("value", Self::get_value, Self::set_value);
|
|
||||||
/// }
|
/// }
|
||||||
/// }
|
/// }
|
||||||
///
|
///
|
||||||
@ -57,11 +56,6 @@ use crate::{
|
|||||||
/// TestStruct { field: 42 }
|
/// TestStruct { field: 42 }
|
||||||
/// );
|
/// );
|
||||||
///
|
///
|
||||||
/// # #[cfg(not(feature = "no_object"))]
|
|
||||||
/// assert_eq!(
|
|
||||||
/// engine.eval::<TestStruct>("let x = new_ts(); x.value = 5 + x.value; x")?,
|
|
||||||
/// TestStruct { field: 6 }
|
|
||||||
/// );
|
|
||||||
/// # Ok(())
|
/// # Ok(())
|
||||||
/// # }
|
/// # }
|
||||||
/// ```
|
/// ```
|
||||||
|
Loading…
Reference in New Issue
Block a user