I recently came across a post which had been edited, but during the edit, a clear error has been introduced in the code originally posted by the OP
see here https://stackoverflow.com/posts/24526457/revisions revision 2
The edit changed
int nickels = 0;
into
int double nickels = 0;
which is obviously wrong. I suggested (and got approved) an edit to revert this change.
My question is: is there any way to deal with this kind of edits other than reverting them?
Here the problem I see is that not only did the edit introduce illegal code but it could have potentially even changed the code originally posted in a way that would have obfuscated the problem posted originally by the OP, e.g. by changing int nickels
to double nickels
which is very close to what the edit resulted in.