From 9b66a812f3cc63d8a225a991af8c1b57898a435a Mon Sep 17 00:00:00 2001 From: jgcodes2020 Date: Wed, 9 Oct 2024 19:48:15 -0400 Subject: [PATCH] fix some stupid edits --- src/window.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/window.rs b/src/window.rs index 3167bc7c73..2c4e172345 100644 --- a/src/window.rs +++ b/src/window.rs @@ -546,7 +546,7 @@ pub trait Surface: AsAny + Send + Sync { /// APIs and software rendering. /// /// ```no_run - /// # use winit::Surface::Window; + /// # use winit::window::Window; /// # fn swap_buffers() {} /// # fn scope(window: &dyn Window) { /// // Do the actual drawing with OpenGL. @@ -599,7 +599,7 @@ pub trait Surface: AsAny + Send + Sync { /// /// ```no_run /// # use winit::dpi::{LogicalSize, PhysicalSize}; - /// # use winit::Surface::Window; + /// # use winit::window::Window; /// # fn scope(window: &dyn Window) { /// // Specify the size in logical dimensions like this: /// let _ = window.request_surface_size(LogicalSize::new(400.0, 200.0).into()); @@ -650,7 +650,7 @@ pub trait Surface: AsAny + Send + Sync { /// /// ```no_run /// # use winit::dpi::{LogicalPosition, PhysicalPosition}; - /// # use winit::Surface::Window; + /// # use winit::window::Window; /// # fn scope(window: &dyn Window) { /// // Specify the position in logical dimensions like this: /// window.set_cursor_position(LogicalPosition::new(400.0, 200.0).into()); @@ -673,7 +673,7 @@ pub trait Surface: AsAny + Send + Sync { /// First try confining the cursor, and if that fails, try locking it instead. /// /// ```no_run - /// # use winit::Surface::{CursorGrabMode, Window}; + /// # use winit::window::{CursorGrabMode, Window}; /// # fn scope(window: &dyn Window) { /// window /// .set_cursor_grab(CursorGrabMode::Confined)