I got an answer to my question.
Even though it answers the question, it refers to the wrong class. I put a comment on the answer: should I edit it?
I got an answer to my question.
Even though it answers the question, it refers to the wrong class. I put a comment on the answer: should I edit it?
The best thing to do is comment (as you have done) asking for clarification from the OP. As a sub-2000 reputation user, edits you make go through a review queue, where others vote on whether to allow your edit.
Large edits that change the meaning of answers are encouraged on answers that are a community effort, but some people might be offended at your attempt to change their answer (even if it's an improvement, and most suggested edits that make a substantial change to a post are rejected in the queue, meaning that they aren't applied at all.
Until you receive full editing privileges, you should comment unless it is a trivial fix (in which case you should also try to fix any other issues with the post so that your edit is not rejected as "too minor").
:P
Commented
Aug 14, 2014 at 6:09
If the edited code works and it looks like he simply made a typo or something similarly trivial, I think you should edit then accept the answer.