From cc57a2344ee0e974dc92ceb4777ce8ff6a1de86e Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sat, 20 Jun 2020 10:49:15 +0800 Subject: [PATCH] Fix doc test. --- src/module.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() } }