This commit is contained in:
Tristan Guichaoua 2022-08-09 10:47:53 +02:00
parent 217ca79930
commit 35c2caab07

View File

@ -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(())
/// # } /// # }
/// ``` /// ```