Fixed typo for TEST_PROTECT in readme

`setjmp` returns 0 on direct invocation, and non-zero when returned to from `longjmp`. Because `TEST_PROTECT` checks the return value of `setjmp` against 0, checking the return value of `TEST_PROTECT` against 0 is incorrect in the readme.
This commit is contained in:
Kate Hart
2017-02-13 16:15:12 -08:00
committed by GitHub
parent 1782bab0ba
commit 65ce72729c
+1 -1
View File
@@ -41,7 +41,7 @@ Example:
main()
{
if (TEST_PROTECT() == 0)
if (TEST_PROTECT())
{
MyTest();
}