Skip to content

Commit

Permalink
fix docs in dyn registries
Browse files Browse the repository at this point in the history
  • Loading branch information
JieningYu committed Sep 9, 2024
1 parent bbae93d commit 77f5344
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/core/registry/src/dyn_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ where
///
/// # Safety
///
/// The type `T` is not
/// This function could not guarantee lifetime of type `T` is sound.
/// The type `T`'s lifetime parameters should not overlap lifetime `'a`.
pub unsafe fn get<T>(&self, key: &Key<K, Registry<K, T>>) -> Option<&Registry<K, T>> {
self.map
.get(key.cast_ref::<()>())
Expand Down

0 comments on commit 77f5344

Please sign in to comment.