1
0
forked from M-Labs/nac3

nac3core: replace paramter with parameter

This commit is contained in:
wylited 2022-04-13 15:42:26 +08:00
parent e94b25f544
commit 35b6459c58

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