Stack Exchange network consists of 183 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.
This user has editted my question with nonsense text and put the same text on the answer:
What to do in this cases?
ps: the question
Roll back or reject the edit (you did) and flag the answer (you didn't). In this case, the "spam" flag would be appropriate - I've gone ahead and done this for you. I also destroyed the user account responsible for this.