fixed doc comments + fixed misleading docs

This commit is contained in:
Dmitry Stepanov
2026-05-10 20:06:56 +03:00
parent 1c0cf15c50
commit d317a1179f
10 changed files with 40 additions and 44 deletions
+4 -2
View File
@@ -331,7 +331,8 @@ where
T: Sized + Reflect,
P: PayloadContainer<Element = T> + 'static,
{
/// Tries to mutably borrow an object and fetch its component of specified type.
/// Tries to borrow a node at the given handle and downcast it to the specified type. If downcasting
/// it is not possible, tries to find a field of the specified type.
#[inline]
pub fn try_get_or_field_ref<'b: 'a, C>(
&'b self,
@@ -347,7 +348,8 @@ where
})
}
/// Tries to mutably borrow an object and fetch its component of specified type.
/// Tries to borrow a node at the given handle and downcast it to the specified type. If downcasting
/// it is not possible, tries to find a field of the specified type.
#[inline]
pub fn try_get_or_field_mut<'b: 'a, C>(
&'b self,