mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2024-12-23 19:31:30 +11:00
Fixed bad usage of incorrect Window
This commit is contained in:
parent
4e6d53deab
commit
ae5917741f
|
@ -205,8 +205,8 @@ impl Window {
|
|||
/// }
|
||||
///};
|
||||
/// ```
|
||||
pub fn new(name: &str, width: usize, height: usize, scale: Scale) -> Result<imp::Window, &str> {
|
||||
imp::Window::new(name, width, height, scale)
|
||||
pub fn new(name: &str, width: usize, height: usize, scale: Scale) -> Result<Window, &str> {
|
||||
imp::Window::new(name, width, height, scale).map(Window)
|
||||
}
|
||||
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue