Fix errors in the doc comment for UiSurface::upsert_node. (#8796)

# Objective

"Retrieves the taffy node corresponding to given entity exists" 😓
This commit is contained in:
ickshonpe 2023-06-09 12:59:57 +01:00 committed by GitHub
parent b559e9b6b4
commit dc3de5f9b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,8 +73,8 @@ impl Default for UiSurface {
}
impl UiSurface {
/// Retrieves the taffy node corresponding to given entity exists, or inserts a new taffy node into the layout if no corresponding node exists.
/// Then convert the given `Style` and use it update the taffy node's style.
/// Retrieves the Taffy node associated with the given UI node entity and updates its style.
/// If no associated Taffy node exists a new Taffy node is inserted into the Taffy layout.
pub fn upsert_node(&mut self, entity: Entity, style: &Style, context: &LayoutContext) {
let mut added = false;
let taffy = &mut self.taffy;