While reviewing, I recently encounter some minor (suggested) edit cases where the codes in the questions are changed by the editor but are not part of the problems.
One instance is something like this (tagged as C#):
void static foo() {
}
Which is edited to
static void foo() {
}
And another is (also tagged as C#):
bar.tostring();
which is edited to:
bar.ToString();
It is obvious that in both cases, the editors changed the codes since otherwise they won't even compile. I understand that this could violate the question if part of the problems presented in the question is the very error which presents in the code itself (like, quite commonly, variable A does not exist in the current context).
But as I read those questions, I know that the questioners are writing those codes not for compilability, but rather just for:
- giving some hypothetical code examples which they could have written or
- giving simpler code than their own problem for the sake of giving minimal example but happen to have some typo errors
At first, I am tempted to reject the edit because I think it does not do any improvement whatsoever. But as a coder, I also know that compilability is an improvement.
What do you think we should do in such case?