diff --git a/crates/libs/windows/src/core/factory_cache.rs b/crates/libs/windows/src/core/factory_cache.rs index c0a69955c8..5c12a3e697 100644 --- a/crates/libs/windows/src/core/factory_cache.rs +++ b/crates/libs/windows/src/core/factory_cache.rs @@ -47,7 +47,8 @@ impl FactoryCache { // This is safe because `FactoryCache` only holds agile factory pointers, which are safe to cache and share between threads. unsafe impl ::core::marker::Sync for FactoryCache {} -/// Attempts to load the factory interface for the given WinRT class +/// Attempts to load the factory object for the given WinRT class. +/// This can be used to access COM interfaces implemented on a Windows Runtime class factory. pub fn factory() -> Result { let mut factory: Option = None; let name = HSTRING::from(C::NAME); diff --git a/crates/libs/windows/src/core/mod.rs b/crates/libs/windows/src/core/mod.rs index 5a4fffc976..58c9c34413 100644 --- a/crates/libs/windows/src/core/mod.rs +++ b/crates/libs/windows/src/core/mod.rs @@ -38,7 +38,6 @@ pub use compose::*; pub(crate) use delay_load::*; pub use error::*; pub use event::*; -#[doc(hidden)] pub use factory_cache::*; #[doc(hidden)] pub use generic_factory::*;