Sometimes users fix bad grammar or spelling mistakes that appear inside the code itself. For example:
print "This number dont divide by ten"
Can be edited to:
print "This number doesn't divide by ten"
Sometimes there are mistakes in variable declarations, or method names - users tend to edit them as well.
I can see the advantages of those edits, but I can also point to some potential problems:
- OP is simply being consistent with existing project variables / method names / etc...
- An automatic script is expecting (by mistake) the output to be misspelled
- ...
If I was editing the post, I would fix the formation, question's grammar and spelling, but I would never edit variable names, OP's conventions or the code itself.
Am I doing the right thing or should I edit minor typos / mistakes that in 99% (maybe) of the time don't harm anyone?