This edit to my answer was nice and added example code. It improved the answer. Somehow four reviewers have rejected it! I have since manually added the code to the answer, but the reviews were IMHO ridiculous.
Could the moderators remove any black marks the editor (also asker of the question) got for this incorrectly rejected edit?