From c29727f82ca6d2b38c4084c76677c252c5f376ef Mon Sep 17 00:00:00 2001 From: Konkitoman Date: Mon, 6 Nov 2023 13:27:28 +0200 Subject: [PATCH] Fix docs --- crates/egui/src/context.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/egui/src/context.rs b/crates/egui/src/context.rs index 44fbe0e5f81..76128d89762 100644 --- a/crates/egui/src/context.rs +++ b/crates/egui/src/context.rs @@ -2570,8 +2570,8 @@ impl Context { /// /// If this is no more called that viewport will be destroyed. /// - /// If you use a [`egui::CentralPanel`] you need to check if the viewport is a new window like: - /// `ctx.viewport_id() != ctx.parent_viewport_id` if false you should create a [`egui::Window`]. + /// If you use a [`crate::CentralPanel`] you need to check if the viewport is a new window like: + /// `ctx.viewport_id() != ctx.parent_viewport_id` if false you should create a [`crate::Window`]. pub fn create_viewport_async( &self, viewport_builder: ViewportBuilder, @@ -2610,7 +2610,7 @@ impl Context { /// The given ui function will be called immediately. /// This can only be called from the main thread. /// - /// If [`force_embedding`] is true, or if the current egui + /// If [`Context::force_embedding`] is true, or if the current egui /// backend does not support sync viewports, the given callback /// will be called immediately and the function will return. /// @@ -2624,7 +2624,7 @@ impl Context { /// If this is no more called that viewport will be destroyed. /// /// If you use a `egui::CentralPanel` you need to check if the viewport is a new window like: - /// `ctx.viewport_id() != ctx.parent_viewport_id` if false you should create a [`egui::Window`]. + /// `ctx.viewport_id() != ctx.parent_viewport_id` if false you should create a [`crate::Window`]. pub fn create_viewport_sync( &self, viewport_builder: ViewportBuilder,