From d382c142145f30184fcff9b56fb177eba79dba11 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Mon, 17 Oct 2022 20:01:29 -0700 Subject: [PATCH] match book naming --- rust/src/vm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/vm.rs b/rust/src/vm.rs index e610663..e70d147 100644 --- a/rust/src/vm.rs +++ b/rust/src/vm.rs @@ -25,7 +25,7 @@ impl VM { } } - pub fn interpret(&mut self) -> Result<()> { + pub fn run(&mut self) -> Result<()> { loop { debug!("{:?}", &self.stack[0..self.stack_top]); debug!("{}", DisassembledInstruction::new(self.ip, &self.chunk,));