mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 06:10:07 -04:00
Minor fix in docs
This commit is contained in:
19
src/lib.rs
19
src/lib.rs
@@ -22,11 +22,6 @@ mod hints;
|
|||||||
|
|
||||||
pub struct MonitorID(uint);
|
pub struct MonitorID(uint);
|
||||||
|
|
||||||
pub struct Window {
|
|
||||||
window: winimpl::Window,
|
|
||||||
nosend: std::kinds::marker::NoSend,
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Represents an OpenGL context and the Window or environment around it.
|
/// Represents an OpenGL context and the Window or environment around it.
|
||||||
///
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
@@ -51,14 +46,12 @@ pub struct Window {
|
|||||||
/// window.swap_buffers();
|
/// window.swap_buffers();
|
||||||
/// std::io::timer::sleep(17);
|
/// std::io::timer::sleep(17);
|
||||||
/// }
|
/// }
|
||||||
///
|
/// ```
|
||||||
/// while !window.is_closed() {
|
pub struct Window {
|
||||||
/// println!("{}", window.wait_events());
|
window: winimpl::Window,
|
||||||
///
|
nosend: std::kinds::marker::NoSend,
|
||||||
/// gl::Clear(gl::COLOR_BUFFER_BIT);
|
}
|
||||||
///
|
|
||||||
/// window.swap_buffers();
|
|
||||||
/// }
|
|
||||||
impl Window {
|
impl Window {
|
||||||
/// Creates a new OpenGL context, and a Window for platforms where this is appropriate.
|
/// Creates a new OpenGL context, and a Window for platforms where this is appropriate.
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user