From e7d40c9b0851f14a64d4ca76ff349105a5da506a Mon Sep 17 00:00:00 2001 From: Paul Buehne <64769435+cactusdualcore@users.noreply.github.com> Date: Tue, 6 Aug 2024 19:35:35 +0200 Subject: [PATCH] Fixed typo (#14636) The closure in the `async_task` example was referred to as a `FnOne`. I think this should be `FnOnce`. --- examples/async_tasks/async_compute.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/async_tasks/async_compute.rs b/examples/async_tasks/async_compute.rs index 563b9e4e4c..d48223b339 100644 --- a/examples/async_tasks/async_compute.rs +++ b/examples/async_tasks/async_compute.rs @@ -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) = {