diff --git a/src/module.rs b/src/module.rs index 2f829c50..8a96a1f8 100644 --- a/src/module.rs +++ b/src/module.rs @@ -451,7 +451,7 @@ impl Module { /// let hash = module.set_fn_2("calc", |x: i64, y: ImmutableString| { /// Ok(x + y.len() as i64) /// }); - /// assert!(module.get_fn(hash).is_some()); + /// assert!(module.contains_fn(hash)); /// ``` pub fn set_fn_2( &mut self, @@ -965,7 +965,7 @@ impl Module { } /// Get the specified type iterator. - pub fn get_iter(&self, id: TypeId) -> Option { + pub(crate) fn get_iter(&self, id: TypeId) -> Option { self.type_iterators.get(&id).cloned() } }