1

I suggested this simple edit, so the output of the code actually matched what the original post was asking for. As you can see, it was rejected for deviating from the original intent of the post, but I didn't think my edit did that (the answer was edited to something similar to mine after it was rejected). I'm just asking, because I've only very recently started using Stack Overflow actively, and I'm curious whether what I did is wrong or not, so I can improve my edits (if needed) in the future.

1

1 Answer 1

6

You are welcome to fix the code indent, as long as it doesn't change the codes behavior. The rest of the code in the question shouldn't be touched as it would make it harder for future readers to identify the OPs issue with the code.

If you know how to solve the issue, post an answer with the corrected code instead.

2
  • So in the future I should post my own answer with correct output instead of editing and improving an already given answer? Or should I comment under the answer (when I actually can) so the person that answered the question can improve it themselves?
    – Amos
    Sep 21, 2015 at 1:39
  • 3
    You are allways free to post your own answer, especially if the already posted answers are wrong. I'd post an answer myself and comment under the wrong answer and ask the OP to improve it.
    – baao
    Sep 21, 2015 at 1:43

You must log in to answer this question.

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