Let's think on the following scenario:
A user asks a question, including part of his code. I have an idea of what could be the problem, which should be included in a part of code he didn't add. I answer him to do that.
Moments later, I realize extra problems there could be. So I edit my answer, in order to cover all the possibilities.
Finally, the user decides to edit his question, to include some of the code I posted to him, to show he had it already included.
This way, some of the possibilities of my answer become useless, since he showed me he had already done that. Therefore, my answer looks a little bit stupid.
Should I really edit it?
What other options do I have?
Might be worthy to say, my answer has already upvotes and has been accepted by the user.