diff --git a/doc/examples/mtapi/mtapi_cpp_wait_task-snippet.h b/doc/examples/mtapi/mtapi_cpp_wait_task-snippet.h index 9f1f9d7..923fea2 100644 --- a/doc/examples/mtapi/mtapi_cpp_wait_task-snippet.h +++ b/doc/examples/mtapi/mtapi_cpp_wait_task-snippet.h @@ -1,5 +1,5 @@ - mtapi_status_t status = task.Wait(MTAPI_INFINITE); - if (status != MTAPI_SUCCESS) { - printf("task failed with error: %d\n\n", status); - exit(status); + mtapi_status_t task_status = task.Wait(MTAPI_INFINITE); + if (task_status != MTAPI_SUCCESS) { + printf("task failed with error: %d\n\n", task_status); + exit(task_status); }