I edited an answer on Stack Overflow, because I encountered an issue in a specific case where the original solution wasn't working: the change I made helps to make the solution work in a wider range of contexts.
I do believe my edit is a proper one as I explained in the comments below the answer:
- the user who posted the question didn't explain the context, and so in my opinion the answer should cover all possible scenarios (including the one in which I spotted the answer fault)
- as far as I can understand, on all Stack Exchange websites the answer is supposed to be as good as possible, always valid and working, and the edit feature is supposed to be used to reach this goal
- I also found a Meta Q&A which covers a very similar case, and it seems to confirm that my edit was a proper one: if a solution works on a general case but fails on a specific one, the answer can (=>has to be) edited
It seems like the user that rolled back my edit has a different point of view (which by the way is lacking arguments in the latest comments), and asked me to move the discussion here on Meta Stack Overflow (actually I think this is a good idea, because all of our comments were about us arguing on the edit and not really useful [besides the first two of them] as far as the original Q&A is concerned).
What to do now?
For a start, I'm going to post the link to this question back inside the Stack Overflow answer comments so that John Saunders can take part in this discussion.