I recently made a suggested edit to fix code in an answer that did not work.
The edit was rejected by other members because they said edits should only touch format or spelling. They said that the original author should be contacted in a comment to explain why the code is wrong and make suggestions in that manner.
The original author noticed my suggested edit after it was rejected and approved it. But I'm confused by the experience.
This post includes suggestions for how to edit code in questions and answers, but not on the topic of bugs.
Should I make an edit to fix a bug in an answer? Or leave a comment on the answer for the original author? I think making an edit makes sense, since it will be reviewed by the community rather than waiting on an original answer author to review a comment.