I suggested an edit that corrected a bug (a missing pointer dereference). It was overwhelmingly rejected because "is incorrect or an attempt to reply to or comment on the existing post"
Since the edit was correct (minutes later the author fixed the bug), I assumed that it was "an attempt to reply to or comment on the existing post". So, I thought, next time, when I see a minor bug in an answer, I have to make a comment.
When should I edit posts? [...] To correct minor mistakes
When shouldn't I comment? [...] Suggesting corrections that don't fundamentally change the meaning of the post; instead, make or suggest an edit;
After that, my confusion increased. It seems that reviewers do not follow clear guidelines. Some people argue that suggested edits that change code have to be rejected, specially in questions, but others disagree.
After this long preamble (sorry), here is my question: in case of a minor bug in an answer, what is the action to be taken: edit or comment?