Here's a pattern I've seen several times (I can provide examples if needed).
- A relatively new user posts a question, including a code sample that illustrates the problem.
- Somebody posts an answer (or perhaps a comment) that provides the solution to the original poster's problem.
- The OP edits his own question, correcting the error he was asking about.
The urge to fix incorrect code is understandable, but I think it's obvious that this isn't the right thing to do; by leaving only the correct code in the question, future readers can't see what the original problem was, and the answer no longer makes sense. (I've rolled back such edits a few times.)
My question is this: What can we do to discourage this kind of thing? Or, more positively, how can we encourage new users to leave their illustrative incorrect code in place? Is this worth a new top-level FAQ entry?