spelling: annotation

This commit is contained in:
Josh Soref 2021-11-04 00:35:17 -04:00
parent 6ba014f43a
commit 6c6434c7a7

View file

@ -1535,7 +1535,7 @@ AstType* Parser::parseSimpleTypeAnnotation()
{
Location location = lexer.current().location;
// For a missing type annoation, capture 'space' between last token and the next one
// For a missing type annotation, capture 'space' between last token and the next one
location = Location(lexer.previousLocation().end, lexer.current().location.begin);
return reportTypeAnnotationError(location, {}, /*isMissing*/ true, "Expected type, got %s", lexer.current().toString().c_str());