Skip to content

Commit

Permalink
Missed a couple
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-blackbird committed Jun 25, 2022
1 parent 23e8258 commit 8859271
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/bevy_window/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl WindowResizeConstraints {
/// # App::new().add_system(access_window_system).run();
/// # }
/// fn access_window_system(mut windows: ResMut<Windows>){
/// for mut window in windows.iter_mut(){
/// for mut window in &mut windows {
/// window.set_title(String::from("Yay, I'm a window!"));
/// }
/// }
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_winit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fn change_window(
mut window_close_events: EventWriter<WindowClosed>,
) {
let mut removed_windows = vec![];
for bevy_window in windows.iter_mut() {
for bevy_window in &mut windows {
let id = bevy_window.id();
for command in bevy_window.drain_commands() {
match command {
Expand Down

0 comments on commit 8859271

Please sign in to comment.