I know that we shouldn't edit code in questions, for obvious reasons. But what about code in answers? Does the same rule apply?
In this case, the code in the answer was changed by an edit to reflect what the author wrote in the text, but I believe that this is not was the author meant. The edit changed the code to something that wouldn't even compile, and after that, downvoting started. As I see it, an edit should make the answer more correct, not introduce further errors.
Wouldn't it have been better to add a comment suggesting the changes? Should this edit be reverted?
I could at least edit it to use Integer instead of int, but that would still change the code, and I am not sure if I should do that.
Since this wasn't really an edit problem, but a problem with html rendering, I'll add a picture of what was presented here:
added 6 characters in body would have been a hint.