Rename FnWrongDefinition to WrongFnDefinition.

This commit is contained in:
Stephen Chung
2021-03-30 11:39:00 +08:00
parent d2ded7733a
commit d756b7bac6
5 changed files with 6 additions and 5 deletions

View File

@@ -2481,7 +2481,7 @@ fn parse_stmt(
// fn ...
#[cfg(not(feature = "no_function"))]
Token::Fn if !settings.is_global => Err(PERR::FnWrongDefinition.into_err(settings.pos)),
Token::Fn if !settings.is_global => Err(PERR::WrongFnDefinition.into_err(settings.pos)),
#[cfg(not(feature = "no_function"))]
Token::Fn | Token::Private => {