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 My for statement keeps repeating even though I set a limit? part of the code written by the OP has been removed, but there is an answer that is telling the OP something was wrong in that part too.

Is it correct to remove the not necessary code, in this case?
Should the question be changed to contain the original code (even if better formatted), or should the answer be changed not to reference the code that is not in the new revision of the question?

share|improve this question
I'd put part back part of what was removed, just enough to show two of the strange ifs. – Mat Sep 29 '12 at 17:21
I would say that the edit made was inappropriate, no matter how innocuous it might seem. It changed the question too much. – Bart Sep 29 '12 at 18:54
I agree with @Bart. If you are not the OP you should never make substantial changes to code in a question. – murgatroid99 Sep 29 '12 at 18:55
up vote 1 down vote accepted

In my opinion, if a problem in the code is unrelated to the problem that the question addresses, anything addressing the other problem should be in a comment, not an answer. That's because addressing issues unrelated to the main problem in the question does not answer the question.

I also think that edits like that, if they substantially change the meaning of the question, should not happen in the first place.

share|improve this answer

You must log in to answer this question.

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