Commit d3d3e55fae

LemonBoy <thatlemon@gmail.com>
2021-02-28 17:01:30
langref: Update usage of Thread.spawn()
1 parent 566adc2
Changed files (1)
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();