Skip to content

Commit c517585

Browse files
committed
Fix oparg docs
1 parent 118ecf3 commit c517585

File tree

1 file changed

+3
-3
lines changed
  • crates/compiler-core/src/bytecode

1 file changed

+3
-3
lines changed

crates/compiler-core/src/bytecode/oparg.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ impl fmt::Display for ConvertValueOparg {
142142
Self::Str => "1 (str)",
143143
Self::Repr => "2 (repr)",
144144
Self::Ascii => "3 (ascii)",
145-
// We should never reach this. `FVC_NONE` are being handled by `Instruction::FormatSimple`
145+
// We should never reach this. `FVC_NONE` are being handled by `RealInstruction::FormatSimple`
146146
Self::None => "",
147147
};
148148

@@ -364,9 +364,9 @@ op_arg_enum!(
364364
/// # Examples
365365
///
366366
/// ```rust
367-
/// use rustpython_compiler_core::bytecode::{Arg, BinaryOperator, Instruction};
367+
/// use rustpython_compiler_core::bytecode::{Arg, BinaryOperator, RealInstruction};
368368
/// let (op, _) = Arg::new(BinaryOperator::Add);
369-
/// let instruction = Instruction::BinaryOp { op };
369+
/// let instruction = RealInstruction::BinaryOp { op };
370370
/// ```
371371
///
372372
/// See also:

0 commit comments

Comments
 (0)