tl;dr
- Revert the edit
- Comment on answers to advise of the edit
- Optional: Ask the editor why - you might learn something.
As the original author, you have final say on what the post says and how it looks (with some restrictions - you can't go around vandalizing your posts or undoing good grammar only changes or adding unrelated noise back into the post).
So if someone had edited your post in a way you don't approve, you can always revert it to the previous state. You should be mindful of any other improvements to the grammar and sentence structure that you would be undoing and try to incorporate them back into the post. If an edit war ensues (if the user or another one tries to re-edit the post in the same way), then flag for a moderator, don't keep trying to revert the changes.
An added problem is what if someone answered the question while in its incorrect state. Since that answer probably no longer addresses your actual question, you should leave a comment advising them of the edit. A good and polite way to say it is something like
Sorry but this doesn't actually address my question. The question was actually about Foo
but someone thought I was talking about Bar
and edited my post to say that without my approval. I have reverted the incorrect edit.
And if you received multiple answers, you should leave a comment on each. The reason for this both to help the unsuspecting answerer avoid downvotes for answering the wrong question, but also prevent someone from seeing the wrong answer and trying to edit your post again (or prevent that answered from editing your post again since they might think you "changed" the question after they answered, rather than fixing the question.
The above is the general case on how to address this situation. In your specific case, it looks like the editor is also the answerer, so there is one additional step I might perform, especially if the answerer appear to be an expert in the technology - I would ask them why they edited the question as they did. The reason is they might know something you don't and you might learn the question you were asking wasn't the right question to ask originally. I would still revert the edit first so they question addresses the problem you wanted to ask, but asking the editor might give you new insight into the problem, or at least point out why your question might be unclear so you can address any unclarity with a subsequent edit.