mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
spelling: annotation
This commit is contained in:
parent
6ba014f43a
commit
6c6434c7a7
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue