This answer was posted with non-compiling, invalid code by the original poster, and it was downvoted accordingly for that reason.
An 80K+ reader edited the code to totally rewrite it to working condition, even enhancing it somewhat for proper error handling. I reverted the edit, and posted a link to this meta post, where the consensus was that code edits should be restricted to formatting issues.
Another user (200K+) reverted my change and reinstated the previous edit.
I'd like someone to review this post, because if a major rewrite of someone's answer is appropriate, IMO it defeats the purpose of being able to downvote poor (or wrong) answers completely.
Can a mod or two take a look at the revision history of the question and chime in here on the propriety of the edit?