Merge pull request #5273 from haze/hb/fix-posix-errorunion-thread-spawn-result

Update ErrorUnion thread spawn result to return null instead of 0
This commit is contained in:
Vexu
2020-05-05 16:20:05 +03:00
committed by GitHub

View File

@@ -280,7 +280,7 @@ pub const Thread = struct {
std.debug.dumpStackTrace(trace.*);
}
};
return 0;
return null;
},
else => @compileError(bad_startfn_ret),
}