From 35c2caab07e6dda3e2b7ea8443036e8b50ec7b15 Mon Sep 17 00:00:00 2001 From: Tristan Guichaoua Date: Tue, 9 Aug 2022 10:47:53 +0200 Subject: [PATCH] fix doc --- src/api/build_type.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/api/build_type.rs b/src/api/build_type.rs index f442af56..cf44e51e 100644 --- a/src/api/build_type.rs +++ b/src/api/build_type.rs @@ -38,8 +38,7 @@ use crate::{ /// builder /// .with_name("TestStruct") /// .with_fn("new_ts", Self::new) -/// .with_fn("update", Self::update) -/// .with_get_set("value", Self::get_value, Self::set_value); +/// .with_fn("update", Self::update); /// } /// } /// @@ -57,11 +56,6 @@ use crate::{ /// TestStruct { field: 42 } /// ); /// -/// # #[cfg(not(feature = "no_object"))] -/// assert_eq!( -/// engine.eval::("let x = new_ts(); x.value = 5 + x.value; x")?, -/// TestStruct { field: 6 } -/// ); /// # Ok(()) /// # } /// ```