Correct documentation for capability removal function

Just correct a function comment.