Skip to content

Commit

Permalink
Fix typo in variable name, enity. (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored Dec 15, 2024
1 parent 7856205 commit 54ed4d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,9 @@ impl EguiContexts<'_, '_> {

/// Egui context of a specific entity.
#[must_use]
pub fn ctx_for_entity_mut(&mut self, enity: Entity) -> &mut egui::Context {
self.try_ctx_for_entity_mut(enity)
.unwrap_or_else(|| panic!("`EguiContexts::ctx_for_window_mut` was called for an uninitialized context (entity {enity:?}), make sure your system is run after [`EguiSet::InitContexts`] (or [`EguiStartupSet::InitContexts`] for startup systems)"))
pub fn ctx_for_entity_mut(&mut self, entity: Entity) -> &mut egui::Context {
self.try_ctx_for_entity_mut(entity)
.unwrap_or_else(|| panic!("`EguiContexts::ctx_for_window_mut` was called for an uninitialized context (entity {entity:?}), make sure your system is run after [`EguiSet::InitContexts`] (or [`EguiStartupSet::InitContexts`] for startup systems)"))
}

/// Fallible variant of [`EguiContexts::ctx_for_entity_mut`].
Expand Down

0 comments on commit 54ed4d4

Please sign in to comment.