From 35b6459c584a84249d43b19cac906105728e2643 Mon Sep 17 00:00:00 2001 From: wylited Date: Wed, 13 Apr 2022 15:42:26 +0800 Subject: [PATCH] nac3core: replace paramter with parameter --- nac3core/src/toplevel/composer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nac3core/src/toplevel/composer.rs b/nac3core/src/toplevel/composer.rs index c002588c..d35a4c02 100644 --- a/nac3core/src/toplevel/composer.rs +++ b/nac3core/src/toplevel/composer.rs @@ -1088,13 +1088,13 @@ impl TopLevelComposer { } } - if name == &"__init__".into() && !defined_paramter_name.contains(&zelf) { + if name == &"__init__".into() && !defined_parameter_name.contains(&zelf) { return Err(format!( "__init__ method must have a `self` parameter (at {})", b.location )); } - if !defined_paramter_name.contains(&zelf) { + if !defined_parameter_name.contains(&zelf) { return Err(format!( "class method must have a `self` parameter (at {})", b.location