Skip to content

Commit

Permalink
Fixed typo (bevyengine#14636)
Browse files Browse the repository at this point in the history
The closure in the `async_task` example was referred to as a `FnOne`. I
think this should be `FnOnce`.
  • Loading branch information
cactusdualcore authored Aug 6, 2024
1 parent 2334638 commit e7d40c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/async_tasks/async_compute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ fn spawn_tasks(mut commands: Commands) {
let transform = Transform::from_xyz(x as f32, y as f32, z as f32);
let mut command_queue = CommandQueue::default();

// we use a raw command queue to pass a FnOne(&mut World) back to be
// we use a raw command queue to pass a FnOnce(&mut World) back to be
// applied in a deferred manner.
command_queue.push(move |world: &mut World| {
let (box_mesh_handle, box_material_handle) = {
Expand Down

0 comments on commit e7d40c9

Please sign in to comment.