I hate it when this sort of thing happens. His edits were well-intentioned, trying to add explanations and references to an otherwise pretty crappy answer that's a code block and literally nothing more. But... putting words in other people's mouths upfront is not exactly the best way to go about addressing that.
I won't blame the author for rolling back the edit, but I left a comment:
Not going to say anything about the rollback - that was probably OK for you to do, but you could at least explain your answer in your own words...
Because as mentioned, it is more appropriate to comment to that effect. Just don't force new content into other people's posts. If you have something to add, comment on their answers, or better yet, write your own answer.
Although one of the answers he edited was rolled back, I'm not going to touch the other answer that he edited. I'll leave it up to the author of that answer, or even the community, to see if that edit should be kept or not.