- Edit your answer so it is correct and says what you want; flag the comments so they can be deleted, since they are now obsolete.
Preservation of comments is not important. If in response you comments you improved your post, the comments served their purpose.
They can now be flagged for deletion.
Either flag them as "no longer needed", or if there are too many of them or you think a moderator may have trouble fully grasping the context by seeing the comment alone, use a custom flag explaining that the comments referred to a previous revision of your answer, and they can be deleted since they are stale or obsolete.
If by reading the comments you now think that the problem lies with the question, please encourage the asker to edit it so it's clearer and better adjusts to their intent. (You could suggest an edit, but you'd be dependent on the OP or other reviewers approving your edit.)
From your question I gather that you had misunderstood the question, not that the question was unclear to begin with and got clearer as comments were posted. If that's not the case, I guess additional steps may be needed.