diff --git a/src/window.rs b/src/window.rs index d6b55830..a00cd7c0 100644 --- a/src/window.rs +++ b/src/window.rs @@ -251,8 +251,8 @@ impl WindowBuilder { /// /// [`Window::set_fullscreen`]: crate::window::Window::set_fullscreen #[inline] - pub fn with_fullscreen(mut self, monitor: Option) -> Self { - self.window.fullscreen = monitor; + pub fn with_fullscreen(mut self, fullscreen: Option) -> Self { + self.window.fullscreen = fullscreen; self }