diff --git a/src/api/register.rs b/src/api/register.rs index 9e2f7490..a335faa1 100644 --- a/src/api/register.rs +++ b/src/api/register.rs @@ -662,7 +662,7 @@ impl Engine { /// let mut module = Module::new(); /// module.set_native_fn("calc", |x: i64| Ok(x + 1)); /// - /// let module: SharedModule = module.into(); + /// let module: Shared = module.into(); /// /// engine /// // Register the module as a fixed sub-module diff --git a/src/ast/ast.rs b/src/ast/ast.rs index 76277e7b..c1cfbaed 100644 --- a/src/ast/ast.rs +++ b/src/ast/ast.rs @@ -267,7 +267,7 @@ impl AST { #[cfg(not(feature = "no_function"))] #[inline(always)] #[must_use] - pub(crate) const fn shared_lib(&self) -> &SharedModule { + pub(crate) const fn shared_lib(&self) -> &crate::SharedModule { &self.lib } /// _(internals)_ Get the internal shared [`Module`][crate::Module] containing all script-defined functions.