fixed typo in wait documentation