Merge pull request #176 from vanderlokken/vanderlokken-fix

Fixed some obsolete comments and strings
This commit is contained in:
tomaka 2017-05-11 11:58:16 +02:00 committed by GitHub
commit ad8d2b0470
2 changed files with 5 additions and 5 deletions

View file

@ -319,7 +319,7 @@ pub enum MouseCursor {
RowResize, RowResize,
} }
/// Describes how glutin handles the cursor. /// Describes how winit handles the cursor.
#[derive(Debug, Copy, Clone, PartialEq)] #[derive(Debug, Copy, Clone, PartialEq)]
pub enum CursorState { pub enum CursorState {
/// Normal cursor behavior. /// Normal cursor behavior.
@ -362,7 +362,7 @@ pub struct WindowAttributes {
/// The title of the window in the title bar. /// The title of the window in the title bar.
/// ///
/// The default is `"glutin window"`. /// The default is `"winit window"`.
pub title: String, pub title: String,
/// Whether the window should be immediately visible upon creation. /// Whether the window should be immediately visible upon creation.
@ -394,7 +394,7 @@ impl Default for WindowAttributes {
min_dimensions: None, min_dimensions: None,
max_dimensions: None, max_dimensions: None,
monitor: None, monitor: None,
title: "glutin window".to_owned(), title: "winit window".to_owned(),
visible: true, visible: true,
transparent: false, transparent: false,
decorations: true, decorations: true,

View file

@ -117,7 +117,7 @@ impl WindowBuilder {
} }
impl Window { 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)`. /// This function is equivalent to `WindowBuilder::new().build(events_loop)`.
/// ///
@ -284,7 +284,7 @@ impl Window {
self.window.set_cursor_position(x, y) 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. /// Has no effect on Android.
#[inline] #[inline]