Fixed bad usage of incorrect Window

This commit is contained in:
Daniel Collin 2016-01-02 22:07:38 +01:00
parent 4e6d53deab
commit ae5917741f

View file

@ -205,8 +205,8 @@ impl Window {
/// } /// }
///}; ///};
/// ``` /// ```
pub fn new(name: &str, width: usize, height: usize, scale: Scale) -> Result<imp::Window, &str> { pub fn new(name: &str, width: usize, height: usize, scale: Scale) -> Result<Window, &str> {
imp::Window::new(name, width, height, scale) imp::Window::new(name, width, height, scale).map(Window)
} }
/// ///