mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 12:59:04 +00:00
doc: possible typo at std.Thread.spawn comment
This commit is contained in:
parent
19ea7ca63c
commit
4129996211
@ -333,7 +333,7 @@ pub const SpawnError = error{
|
||||
};
|
||||
|
||||
/// Spawns a new thread which executes `function` using `args` and returns a handle to the spawned thread.
|
||||
/// `config` can be used as hints to the platform for now to spawn and execute the `function`.
|
||||
/// `config` can be used as hints to the platform for how to spawn and execute the `function`.
|
||||
/// The caller must eventually either call `join()` to wait for the thread to finish and free its resources
|
||||
/// or call `detach()` to excuse the caller from calling `join()` and have the thread clean up its resources on completion.
|
||||
pub fn spawn(config: SpawnConfig, comptime function: anytype, args: anytype) SpawnError!Thread {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user