Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

In this question, self clearing interval inside jquery.each() there was a minor omission in my code. A responder drew my attention to it and I accepted the answer. Should I correct the code in the question so that it's correct, for other users to be able to use it? Or is it bad to rewrite history?

I will, of course, comment the edited lines as //fixed as per accepted answer.

share|improve this question
+1 for asking the question to learn the proper way to do things :) – Andrew Barber Feb 13 '13 at 15:20

No, don't do it.

The answer was given in the context of the question, that is - wrong code.

If you correct the question, the answer is now meaningless.

share|improve this answer

If you want to show that you solved it, accept the answer that you used, and think about leaving a comment on the answer that says "thanks". If you fixed it yourself, and nobody else got it, answer your own question with the correct code. If nobody else has correctly answered your question, then accept your own answer.

share|improve this answer
A comment that says nothing but "thanks" is useless. – Asad Saeeduddin Feb 13 '13 at 16:54
It simply shows that you have gained useful information from an answer. Many of us simply like to know that we are giving back to a community that has helped us, and don't care about rep. – Azulflame Feb 13 '13 at 16:56
Accepting an answer indicates that you found it useful. Comments like "thanks, that worked perfectly!" are harmless as a social nicety perhaps, but are entirely unnecessary. – Asad Saeeduddin Feb 13 '13 at 17:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .