authorgravatar for leonardogattidev@gmail.comLeonardo Gatti <leonardogattidev@gmail.com> 2023-12-29 22:23:26-03:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2023-12-30 14:17:36+02:00
log4129996211edd30b25c23454520fd78b2a70394b
treeac39c53b18f6e69e984962e1d1a7e27fb3f8469c
parent19ea7ca63cb0eb755e863926e0c6fd3c03601097

doc: possible typo at `std.Thread.spawn` comment


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/Thread.zig+1-1
......@@ -333,7 +333,7 @@ pub const SpawnError = error{
333333};
334334
335335/// Spawns a new thread which executes `function` using `args` and returns a handle to the spawned thread.
336/// `config` can be used as hints to the platform for now to spawn and execute the `function`.
336/// `config` can be used as hints to the platform for how to spawn and execute the `function`.
337337/// The caller must eventually either call `join()` to wait for the thread to finish and free its resources
338338/// or call `detach()` to excuse the caller from calling `join()` and have the thread clean up its resources on completion.
339339pub fn spawn(config: SpawnConfig, comptime function: anytype, args: anytype) SpawnError!Thread {