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

@@ -20,7 +20,7 @@ fn main() {
let is_help = env::args().any(|a| a == "-h" || a == "--help");
let is_debug = env::args().any(|a| a == "-d" || a == "--debug");
let arg_file = env::args().filter(|a| !a.starts_with("-")).nth(1);
if is_help {
println!("grassmudhorse.rs v0.1");
return;
@@ -62,7 +62,7 @@ fn main() {
}
let vm = Vm::new(instructions);
vm.defint_labels(&mut context);
vm.define_labels(&mut context);
match vm.execute(&mut context) {
Err(RuntimeError::EndVm) => (),

View File

@@ -145,7 +145,7 @@ impl Vm {
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() {
if let Instruction::DefineLabel(i) = ins {
if context.is_debug() {