diff --git a/src/vm/inst.rs b/src/vm/inst.rs index 6025ba4..f3db323 100644 --- a/src/vm/inst.rs +++ b/src/vm/inst.rs @@ -69,7 +69,8 @@ pub enum Inst { // impl Inst // impl Inst { - pub fn name(&self) -> &'static str { + /// Gets the printable name of this instruction. + pub const fn name(&self) -> &'static str { match self { Inst::PushSym(_) => "PUSH_SYM", Inst::PushConst(_) => "PUSH_CONST",