diff --git a/src/engine_api.rs b/src/engine_api.rs index 20082612..cca1d706 100644 --- a/src/engine_api.rs +++ b/src/engine_api.rs @@ -208,6 +208,7 @@ impl Engine { /// // Use `register_fn` to register methods on the type. /// .register_fn("update", TestStruct::update); /// + /// # #[cfg(not(feature = "no_object"))] /// assert_eq!( /// engine.eval::("let x = new_ts(); x.update(41); x")?, /// TestStruct { field: 42 }