Skip to content

Commit 2e220f9

Browse files
committed
Add doc for PopTop
1 parent 01dd81a commit 2e220f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/compiler-core/src/bytecode.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,10 @@ pub enum Instruction {
792792
PopJumpIfTrue {
793793
target: Arg<Label>,
794794
},
795+
/// Removes the top-of-stack item:
796+
/// ```py
797+
/// STACK.pop()
798+
/// ```
795799
PopTop,
796800
Raise {
797801
kind: Arg<RaiseKind>,

0 commit comments

Comments
 (0)