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

I reviewed this question where the edit was adding missing parentheses and brackets to source code . Since the OP's description of what was wrong was so vague of but am unable to make it work and What am i doing wrong above? I thought it may be possible that the missing brace was relevant to their question.

The edit was approved 3-2 so I rolled it back and made the typo fixes that the suggested edit had made. Was this the correct thing to do or should I have agreed with the majority of the reviewers?

share|improve this question
up vote 10 down vote accepted

I would say the rollback was a fair one. I see no indication anywhere in the question or comments that we're dealing with a copy-paste error. And as you say, the rather vague description of the problem might well leave room for these assumed typos to be the problem at hand.

In such a situation I prefer to point out that flaw to the OP in a comment. More often than not the response is "oh yeah, sorry, that's my mistake copying it", after which the OP edits the code. That would be the correct procedure to follow in my opinion. Correcting the code without such prior verification is not.

share|improve this answer

In this question, all we knew is that the asker “am unable to make it work”. This could have been caused by a syntax error causing the code not to be executed. So the edit should have been rejected as “radical change” (an edit to a question must not invalidate answers that are likely to help the asker), and you were right to roll it back.

If it had been clear that the missing last line was a copy-paste error, the edit would have been a good one. For example, if a question states that a program compiles but doesn't run as desired, and the posted source is missing a final brace, adding that final brace is a good edit.

share|improve this answer

You must log in to answer this question.

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