authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2021-02-28 17:01:30+01:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2021-02-28 17:01:30+01:00
logd3d3e55fae2299d1ff594c77da2f1f41f44ab525
treee9e57219d79d903fb52dd910854e13c73582c77d
parent566adc2510859eaa30eb7c318260c98e712daccf

langref: Update usage of Thread.spawn()


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

doc/langref.html.in+2-2
...@@ -933,8 +933,8 @@ const assert = std.debug.assert;...@@ -933,8 +933,8 @@ const assert = std.debug.assert;
933threadlocal var x: i32 = 1234;933threadlocal var x: i32 = 1234;
934934
935test "thread local storage" {935test "thread local storage" {
936 const thread1 = try std.Thread.spawn({}, testTls);936 const thread1 = try std.Thread.spawn(testTls, {});
937 const thread2 = try std.Thread.spawn({}, testTls);937 const thread2 = try std.Thread.spawn(testTls, {});
938 testTls({});938 testTls({});
939 thread1.wait();939 thread1.wait();
940 thread2.wait();940 thread2.wait();