mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-29 09:08:58 +00:00
Fix doc comment
This commit is contained in:
+6
-2
@@ -18,8 +18,12 @@ pub(crate) fn find_parent(target: Entity, q_parents: &Query<Option<&Parent>>) ->
|
|||||||
/// Find the nearest common ancestor entity of a set of `entities`. Returns
|
/// Find the nearest common ancestor entity of a set of `entities`. Returns
|
||||||
/// `None` if the provided `entities` do not have a common ancestor.
|
/// `None` if the provided `entities` do not have a common ancestor.
|
||||||
///
|
///
|
||||||
/// - Time: O(D) where D = the depth of the deepest member of `entities`
|
/// - Time: O(DN)
|
||||||
/// - Space: O(N) where N = the length of `entities`
|
/// - Space: O(N)
|
||||||
|
///
|
||||||
|
/// where
|
||||||
|
/// - D = depth of the most deeply-nested member of `entites`
|
||||||
|
/// - N = the number of `entities` provided
|
||||||
pub(crate) fn nearest_common_ancestor(
|
pub(crate) fn nearest_common_ancestor(
|
||||||
entities: &[Entity],
|
entities: &[Entity],
|
||||||
q_parents: &Query<Option<&Parent>>,
|
q_parents: &Query<Option<&Parent>>,
|
||||||
|
|||||||
Reference in New Issue
Block a user