diff options
| author | LemonBoy <thatlemon@gmail.com> | 2021-02-28 17:01:30 +0100 |
|---|---|---|
| committer | LemonBoy <thatlemon@gmail.com> | 2021-02-28 17:01:30 +0100 |
| commit | d3d3e55fae2299d1ff594c77da2f1f41f44ab525 (patch) | |
| tree | e9e57219d79d903fb52dd910854e13c73582c77d /doc | |
| parent | 566adc2510859eaa30eb7c318260c98e712daccf (diff) | |
| download | zig-d3d3e55fae2299d1ff594c77da2f1f41f44ab525.tar.gz zig-d3d3e55fae2299d1ff594c77da2f1f41f44ab525.zip | |
langref: Update usage of Thread.spawn()
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/langref.html.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/langref.html.in b/doc/langref.html.in index e49609fdbf..a716336015 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -933,8 +933,8 @@ const assert = std.debug.assert; threadlocal var x: i32 = 1234; test "thread local storage" { - const thread1 = try std.Thread.spawn({}, testTls); - const thread2 = try std.Thread.spawn({}, testTls); + const thread1 = try std.Thread.spawn(testTls, {}); + const thread2 = try std.Thread.spawn(testTls, {}); testTls({}); thread1.wait(); thread2.wait(); |
