diff --git a/crates/egui/src/context.rs b/crates/egui/src/context.rs index 4528b6e254d..f1b808b765b 100644 --- a/crates/egui/src/context.rs +++ b/crates/egui/src/context.rs @@ -1076,7 +1076,7 @@ impl Context { /// ``` /// # let ctx = egui::Context::default(); /// # let state = true; - /// ctx.debug_text(format!("State: {state;?}")); + /// ctx.debug_text(format!("State: {state:?}")); /// ``` #[track_caller] pub fn debug_text(&self, text: impl Into) {