I assume you're talking about this question (currently deleted - screenshot for others' benefit):
The first edit was indeed rather pointless: they removed the subject area from the title and left the typo next to it, leaving it wholly worse.
The second edit was mostly good: it fixed several minor errors in both the post and title. It also introduced some superfluous code formatting, which... is a perplexing style that numerous authors and editors seem to cling to in spite of frequent urging to stop doing it.
The goal of editing is to allow posts to improve over time rather than leaving errors to distract generations of future readers. However, not everyone knows how to make useful edits. Revision #3 exemplifies why we need editing, while revision #2 exemplifies why we need the asker - you - to retain editorial oversight on their own posts.
The correct response in this case is shown by revision #4: you re-wrote the post, leaving the grammatical corrections in place while dropping the superfluous formatting and restoring critical detail. This is the essence of collaboration: accepting useful input from others while discarding what is not useful.