That is just sad. Even if you weren’t dyslexic everyone messes up by misspelling a word and spending much more time than they should debugging. As a manager I would spend my time trying to figure out how we can help you reduce the likelihood of this happening again and not make fun of you for a mistake that everyone makes.
As an example, my first hire was an immigrant from Africa. He can speak English, but his spelling is not ideal - and because English is not his first language his naming structure for things like variable and classes needs improvement. To help with this I implemented specific standards for how naming should work and gave him a ton of concrete examples of how I would name something in a number of scenarios. Now that he’s been working for me for a while, I only actually have to give feedback on naming conventions maybe once a week.
Edit: spelling.