Merge pull request #277 from tomaka/doctest-fix

Fix swapchain doctest
This commit is contained in:
tomaka 2016-09-20 10:29:36 +02:00 committed by GitHub
commit 6bd381d299

View File

@ -73,7 +73,10 @@
//!
//! # fn build_window() -> *const u32 { ptr::null() }
//! let window = build_window();
//! let _surface = unsafe { Surface::from_hwnd(&instance, ptr::null(), window).unwrap() };
//! let _surface = unsafe {
//! let hinstance: *const () = ptr::null(); // Windows-specific object
//! Surface::from_hwnd(&instance, hinstance, window).unwrap()
//! };
//! ```
//!
//! ## Creating a surface from a monitor