It's a typo. It's neither a spelling errror nor a grammatical error. When someone knows the right word, it's not a grammatical error. When someone knows how to spell the intended word, it's not a spelling error simply because that person's finger hits the wrong key.
- For Teachers