diff --git a/src/ast.rs b/src/ast.rs index a3d143ae..39a5796a 100644 --- a/src/ast.rs +++ b/src/ast.rs @@ -1303,7 +1303,7 @@ pub struct OpAssignment { /// /// Two separate hashes are pre-calculated because of the following pattern: /// -/// ```rust,no_run +/// ```,ignore /// func(a, b, c); // Native: func(a, b, c) - 3 parameters /// // Script: func(a, b, c) - 3 parameters /// diff --git a/src/module/mod.rs b/src/module/mod.rs index 2ca01980..123c2261 100644 --- a/src/module/mod.rs +++ b/src/module/mod.rs @@ -782,7 +782,7 @@ impl Module { /// Ok(orig) // return Result> /// }); /// - /// assert!(module.contains_fn(hash, true)); + /// assert!(module.contains_fn(hash)); /// ``` #[inline(always)] pub fn set_raw_fn( @@ -829,7 +829,7 @@ impl Module { /// /// let mut module = Module::new(); /// let hash = module.set_native_fn("calc", || Ok(42_i64)); - /// assert!(module.contains_fn(hash, true)); + /// assert!(module.contains_fn(hash)); /// ``` #[inline(always)] pub fn set_native_fn(&mut self, name: impl Into, func: F) -> u64 @@ -863,7 +863,7 @@ impl Module { /// /// let mut module = Module::new(); /// let hash = module.set_getter_fn("value", |x: &mut i64| { Ok(*x) }); - /// assert!(module.contains_fn(hash, true)); + /// assert!(module.contains_fn(hash)); /// ``` #[cfg(not(feature = "no_object"))] #[inline(always)] @@ -904,7 +904,7 @@ impl Module { /// *x = y.len() as i64; /// Ok(()) /// }); - /// assert!(module.contains_fn(hash, true)); + /// assert!(module.contains_fn(hash)); /// ``` #[cfg(not(feature = "no_object"))] #[inline(always)] @@ -949,7 +949,7 @@ impl Module { /// let hash = module.set_indexer_get_fn(|x: &mut i64, y: ImmutableString| { /// Ok(*x + y.len() as i64) /// }); - /// assert!(module.contains_fn(hash, true)); + /// assert!(module.contains_fn(hash)); /// ``` #[cfg(not(feature = "no_index"))] #[inline(always)] @@ -1010,7 +1010,7 @@ impl Module { /// *x = y.len() as i64 + value; /// Ok(()) /// }); - /// assert!(module.contains_fn(hash, true)); + /// assert!(module.contains_fn(hash)); /// ``` #[cfg(not(feature = "no_index"))] #[inline(always)] @@ -1076,8 +1076,8 @@ impl Module { /// Ok(()) /// } /// ); - /// assert!(module.contains_fn(hash_get, true)); - /// assert!(module.contains_fn(hash_set, true)); + /// assert!(module.contains_fn(hash_get)); + /// assert!(module.contains_fn(hash_set)); /// ``` #[cfg(not(feature = "no_index"))] #[inline(always)]