Fix mismatch of function prototype and document