File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ impl Display for DisplayOp<&'_ Isa> {
7979 write ! (
8080 f,
8181 "\
82+ {indent}/// A Wasmi bytecode operator or instruction.
8283 {indent}#[allow(non_camel_case_types)]\n \
8384 {indent}pub enum Op {{\n \
8485 {variants}\n \
Original file line number Diff line number Diff line change @@ -50,12 +50,14 @@ impl Display for DisplayOpCode<&'_ Isa> {
5050 f,
5151 "\
5252 {indent}#[allow(non_camel_case_types)]\n \
53+ {indent}/// The operator code (op-code) of a Wasmi bytecode [`Op`](crate::Op).
5354 {indent}#[repr(u16)]\n \
5455 {indent}pub enum OpCode {{\n \
5556 {variants}\n \
5657 {indent}}}\n \
5758 \n \
5859 {indent}impl Op {{\n \
60+ {indent} /// Returns the [`OpCode`] associated to `self`.
5961 {indent} pub fn code(&self) -> OpCode {{\n \
6062 {indent} match self {{\n \
6163 {match_arms_code}\n \
You can’t perform that action at this time.
0 commit comments