From 4cb4097b084d9f9df31d7cf36b5876ad51790828 Mon Sep 17 00:00:00 2001 From: Haze Booth Date: Tue, 5 May 2020 04:14:11 -0400 Subject: [PATCH] Update ErrorUnion thread spawn result to return null instead of 0 --- lib/std/thread.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/thread.zig b/lib/std/thread.zig index 6d9b4bebe..d07c41c5b 100644 --- a/lib/std/thread.zig +++ b/lib/std/thread.zig @@ -280,7 +280,7 @@ pub const Thread = struct { std.debug.dumpStackTrace(trace.*); } }; - return 0; + return null; }, else => @compileError(bad_startfn_ret), }