I came across How to convert a c string into its escaped version in c? and found the code at the end of the accepted answer to be suitable for my needs. But the calls to fputs
and fputc
had the arguments reversed -- a common mistake, and easy enough to fix.
I fixed this error, tested it to make sure it compiled, and submitted it as an edit with a brief but sufficiently thorough description. The edit was rejected 3-to-2, and I don't understand the reasons given:
This edit changes too much in the original post; the original meaning or intent of the post would be lost.
The meaning was perfectly clear. I could understand this reason if my edit were to a question, but that's not the case here.
This edit is incorrect or an attempt to reply to or comment on the existing post.
It is neither.
A brief review of When should I make edits to code? suggests that my edit was reasonable:
Do:
- Test your edited code to make sure it works
- Fix syntax errors and typos
Don't:
- Change the code logic or functionality — even if you think you're correcting it
So I'm left at a loss for why my edit was rejected. I'd like either for someone to explain to me where I went wrong so I don't make this mistake again, or for my edit to be re-reviewed if my logic is sound.