Skip to content

Commit

Permalink
fix some stupid edits
Browse files Browse the repository at this point in the history
  • Loading branch information
jgcodes2020 committed Oct 9, 2024
1 parent a595d9c commit 9b66a81
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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());
Expand Down Expand Up @@ -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());
Expand All @@ -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)
Expand Down

0 comments on commit 9b66a81

Please sign in to comment.