aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTomaka17 <pierre.krieger1708@gmail.com>2014-07-30 14:18:31 +0200
committerTomaka17 <pierre.krieger1708@gmail.com>2014-07-30 14:18:31 +0200
commitca8974841407f801b7d396b0d2f93a6803cb06c0 (patch)
tree151eb356e9c92291694652bdc7005214bdd8e5af /src
parent17ad7ef50eaa7b4f7b3e55304847ba4801086c0e (diff)
downloadglutin-ca8974841407f801b7d396b0d2f93a6803cb06c0.tar.gz
glutin-ca8974841407f801b7d396b0d2f93a6803cb06c0.zip
Minor fix in docs
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 25cc9ad..31d0311 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -22,11 +22,6 @@ mod hints;
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.
///
/// # Example
@@ -51,14 +46,12 @@ pub struct Window {
/// window.swap_buffers();
/// std::io::timer::sleep(17);
/// }
-///
-/// while !window.is_closed() {
-/// println!("{}", window.wait_events());
-///
-/// gl::Clear(gl::COLOR_BUFFER_BIT);
-///
-/// window.swap_buffers();
-/// }
+/// ```
+pub struct Window {
+ window: winimpl::Window,
+ nosend: std::kinds::marker::NoSend,
+}
+
impl Window {
/// Creates a new OpenGL context, and a Window for platforms where this is appropriate.
///