I had the same thought! Based on the other comments, I think the asker's entire problem was the fact that they had a code typo. Not simply that they made a typo in writing the question. It would be completely ridiculous to close a question for that reason rather than just edit it.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I had the same thought! Based on the other comments, I think the asker's entire problem was the fact that they had a code typo. Not simply that they made a typo in writing the question. It would be completely ridiculous to close a question for that reason rather than just edit it.