fix documentation of assert

This commit is contained in:
Nick Erdmann 2019-07-16 01:48:47 +02:00 committed by Andrew Kelley
parent 7d9ee5d6d5
commit 33eaaadd01

View File

@ -199,7 +199,7 @@ pub fn dumpStackTrace(stack_trace: builtin.StackTrace) void {
/// in its heuristics.
/// Inside a test block, it is best to use the `std.testing` module rather
/// than this function, because this function may not detect a test failure
/// in ReleaseFast and ReleaseSafe mode. Outside of a test block, this assert
/// in ReleaseFast and ReleaseSmall mode. Outside of a test block, this assert
/// function is the correct function to use.
pub fn assert(ok: bool) void {
if (!ok) unreachable; // assertion failure