forked from M-Labs/nac3
1
0
Fork 0

fix typos

This commit is contained in:
Sebastien Bourdeauducq 2022-04-27 11:08:10 +08:00
parent 48cb485b89
commit a321b13bec
1 changed files with 2 additions and 2 deletions

View File

@ -1470,7 +1470,7 @@ impl TopLevelComposer {
/// step 5, analyze and call type inferencer to fill the `instance_to_stmt` of topleveldef::function
fn analyze_function_instance(&mut self) -> Result<(), String> {
// first get the class contructor type correct for the following type check in function body
// first get the class constructor type correct for the following type check in function body
// also do class field instantiation check
let init_str_id = "__init__".into();
let mut definition_extension = Vec::new();
@ -1581,7 +1581,7 @@ impl TopLevelComposer {
return Ok(());
}
let mut init_id: Option<DefinitionId> = None;
// get the class contructor type correct
// get the class constructor type correct
let (contor_args, contor_type_vars) = {
let mut constructor_args: Vec<FuncArg> = Vec::new();
let mut type_vars: HashMap<u32, Type> = HashMap::new();