diff --git a/crates/egui/src/widgets/text_edit/builder.rs b/crates/egui/src/widgets/text_edit/builder.rs index 12077b932..9efcb9805 100644 --- a/crates/egui/src/widgets/text_edit/builder.rs +++ b/crates/egui/src/widgets/text_edit/builder.rs @@ -223,7 +223,7 @@ impl<'t> TextEdit<'t> { /// so it is strongly suggested that you cache the results of any syntax highlighter /// so as not to waste CPU highlighting the same string every frame. /// - /// The arguments is the enclosing [`Ui`] (so you can access e.g. [`Ui::fonts`]), + /// The arguments is the enclosing [`Ui`] (so you can access e.g. [`Ui::style`]), /// the text and the wrap width. /// /// ```