From 5645941a145917e5398b496e71d0bd5d8fd6b6a4 Mon Sep 17 00:00:00 2001 From: vanderlokken Date: Thu, 11 May 2017 03:10:07 +0300 Subject: [PATCH 1/2] Fixed obsolete comments --- src/window.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/window.rs b/src/window.rs index 920563fc..349c31b1 100644 --- a/src/window.rs +++ b/src/window.rs @@ -117,7 +117,7 @@ impl WindowBuilder { } impl Window { - /// Creates a new OpenGL context, and a Window for platforms where this is appropriate. + /// Creates a new Window for platforms where this is appropriate. /// /// This function is equivalent to `WindowBuilder::new().build(events_loop)`. /// @@ -284,7 +284,7 @@ impl Window { self.window.set_cursor_position(x, y) } - /// Sets how glutin handles the cursor. See the documentation of `CursorState` for details. + /// Sets how winit handles the cursor. See the documentation of `CursorState` for details. /// /// Has no effect on Android. #[inline] From f034017ab2f02ff89e03d834816a4bd033471583 Mon Sep 17 00:00:00 2001 From: vanderlokken Date: Thu, 11 May 2017 03:14:38 +0300 Subject: [PATCH 2/2] FIxed obsolete strings --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 913569d7..624d99c5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -319,7 +319,7 @@ pub enum MouseCursor { RowResize, } -/// Describes how glutin handles the cursor. +/// Describes how winit handles the cursor. #[derive(Debug, Copy, Clone, PartialEq)] pub enum CursorState { /// Normal cursor behavior. @@ -362,7 +362,7 @@ pub struct WindowAttributes { /// The title of the window in the title bar. /// - /// The default is `"glutin window"`. + /// The default is `"winit window"`. pub title: String, /// Whether the window should be immediately visible upon creation. @@ -394,7 +394,7 @@ impl Default for WindowAttributes { min_dimensions: None, max_dimensions: None, monitor: None, - title: "glutin window".to_owned(), + title: "winit window".to_owned(), visible: true, transparent: false, decorations: true,