forked from M-Labs/nac3
1
0
Fork 0

nac3core: replace paramter with parameter

This commit is contained in:
wylited 2022-04-13 15:42:26 +08:00
parent e94b25f544
commit 35b6459c58
1 changed files with 2 additions and 2 deletions

View File

@ -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