Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Someone who accidentally downvoted one of my answers has edited my answer with a non-substantial edit just so they could change it to an upvote. Is this allowed?
As you describe it, the action seems to have been in good faith. It isn't something that happens too often so that we should be worried about it. On the other hand, users shouldn't exploit this to undo votes as they see fit.