This edit got rejected by 2 reviewers (but approved by 1) with the following reason:
This edit deviates from the original intent of the post. Even edits that must make drastic changes should strive to preserve the goals of the post's owner.
The PO of the question was asked to show some code. He did so, but posted it as an answer to his question.
I decided to add a new section to the question (marked as edit) and move the code to there. No code, nor content changed. I also voted to remove the answer.
How should I have handled this?