diff --git a/lib/src/metta/runner/modules/mod.rs b/lib/src/metta/runner/modules/mod.rs index f659d4c53..e52295140 100644 --- a/lib/src/metta/runner/modules/mod.rs +++ b/lib/src/metta/runner/modules/mod.rs @@ -221,7 +221,7 @@ impl MettaMod { Ok(()) } - /// Returns `true` if a module used to import a specific loaded dependency + /// Returns `true` if the `self` module has imported the `mod_id` module as a sub-dependency pub fn contains_imported_dep(&self, mod_id: &ModId) -> bool { let deps_table = self.imported_deps.lock().unwrap(); deps_table.contains_key(&mod_id) diff --git a/lib/src/space/mod.rs b/lib/src/space/mod.rs index 1d90dad31..0bd604ba1 100644 --- a/lib/src/space/mod.rs +++ b/lib/src/space/mod.rs @@ -207,10 +207,10 @@ pub trait Space: std::fmt::Debug + std::fmt::Display { None } - /// Returns an &dyn [std::any::Any] for spaces where this is possible + /// Returns an `&dyn `[Any](std::any::Any) for spaces where this is possible fn as_any(&self) -> Option<&dyn std::any::Any>; - /// Returns an &mut dyn [std::any::Any] for spaces where this is possible + /// Returns an `&mut dyn `[Any](std::any::Any) for spaces where this is possible fn as_any_mut(&mut self) -> Option<&mut dyn std::any::Any>; }