Skip to content

Commit 4497818

Browse files
committed
improve docs for last field
1 parent 7354e28 commit 4497818

File tree

1 file changed

+4
-2
lines changed
  • crates/wasmi/src/engine/translator/func

1 file changed

+4
-2
lines changed

crates/wasmi/src/engine/translator/func/instrs.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ use alloc::vec::{self, Vec};
2424
pub struct OpEncoder {
2525
/// The last pushed [`Op`].
2626
///
27-
/// This is special in that it allows being peeked and manipulated.
28-
/// This is useful to perform op-code fusion or adjusting the result slot.
27+
/// # Note
28+
///
29+
/// - This allows the last [`Op`] to be peeked and manipulated.
30+
/// - For example, this is useful to perform op-code fusion or adjusting the result slot.
2931
last: Option<Instr>,
3032
/// The fuel costs of instructions.
3133
///

0 commit comments

Comments
 (0)