11

When a question is solved, should the OP edit the post to include the working solution provided by one of the answers?

Here's an example:

Codeaddict gave me the correct answer for my question. I accepted his answer and I also upvoted a helpful comment.

Should I also update my question's code to include his correction?

18

Nope. You should just do what you did and accept the answer that helped you. Changing the code will screw up the context of the question.

6

No, don't change your original question but some people add an "Edit" or "Update" section at the end of their answer. It's not strictly necessary but you can add the fixed code to the end of your question (clearly marked as an addendum/solution).

  • 1
    did you mean "question" instead of "answer" in the first sentence? – Lance Roberts Jan 2 '14 at 18:17

You must log in to answer this question.

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