fix spell
This commit is contained in:
@@ -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) => (),
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user