Skip to content

Commit

Permalink
Fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
MDeiml committed Oct 19, 2022
1 parent d8adc9d commit 7e2ec5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_window/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,13 @@ pub enum AbstractWindowHandle {
/// resize_constraints,
/// ..default()
/// };
/// let mut window = Window::new(
/// let mut window = Window::new_virtual(
/// WindowId::new(),
/// &window_descriptor,
/// 100, // physical_width
/// 100, // physical_height
/// 1.0, // scale_factor
/// None, None);
/// None);
///
/// let area = compute_window_area(&window);
/// assert_eq!(area, 100.0 * 100.0);
Expand Down

0 comments on commit 7e2ec5d

Please sign in to comment.