Fix with_fullscreen signature

This commit is contained in:
Christian Duerr 2020-08-01 23:10:33 +00:00 committed by GitHub
parent 40232d48ba
commit 7a49c88200
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -251,8 +251,8 @@ impl WindowBuilder {
///
/// [`Window::set_fullscreen`]: crate::window::Window::set_fullscreen
#[inline]
pub fn with_fullscreen(mut self, monitor: Option<Fullscreen>) -> Self {
self.window.fullscreen = monitor;
pub fn with_fullscreen(mut self, fullscreen: Option<Fullscreen>) -> Self {
self.window.fullscreen = fullscreen;
self
}