fix spell

This commit is contained in:
2020-05-10 00:04:38 +08:00
parent 4724f9a8f5
commit fe196b6507
2 changed files with 3 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ fn main() {
} }
let vm = Vm::new(instructions); let vm = Vm::new(instructions);
vm.defint_labels(&mut context); vm.define_labels(&mut context);
match vm.execute(&mut context) { match vm.execute(&mut context) {
Err(RuntimeError::EndVm) => (), Err(RuntimeError::EndVm) => (),

View File

@@ -145,7 +145,7 @@ impl Vm {
Vm { instructions, } Vm { instructions, }
} }
pub fn defint_labels(&self, context: &mut Context) { pub fn define_labels(&self, context: &mut Context) {
for (ptr, ins) in self.instructions.iter().enumerate() { for (ptr, ins) in self.instructions.iter().enumerate() {
if let Instruction::DefineLabel(i) = ins { if let Instruction::DefineLabel(i) = ins {
if context.is_debug() { if context.is_debug() {