Fix doc test.
This commit is contained in:
parent
aec4417bd5
commit
6f3de4c803
@ -208,6 +208,7 @@ impl Engine {
|
|||||||
/// // Use `register_fn` to register methods on the type.
|
/// // Use `register_fn` to register methods on the type.
|
||||||
/// .register_fn("update", TestStruct::update);
|
/// .register_fn("update", TestStruct::update);
|
||||||
///
|
///
|
||||||
|
/// # #[cfg(not(feature = "no_object"))]
|
||||||
/// assert_eq!(
|
/// assert_eq!(
|
||||||
/// engine.eval::<TestStruct>("let x = new_ts(); x.update(41); x")?,
|
/// engine.eval::<TestStruct>("let x = new_ts(); x.update(41); x")?,
|
||||||
/// TestStruct { field: 42 }
|
/// TestStruct { field: 42 }
|
||||||
|
Loading…
Reference in New Issue
Block a user