From ab6ea2d397324472aed2f81374f715415a5df556 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Thu, 12 Dec 2024 19:05:51 +0700 Subject: [PATCH] Fix typo in variable name, `enity`. --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 5acef0de..d317c403 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -402,9 +402,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`].