From 1dc77c26e1de52f43b0841f60c42f9581ac31f77 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 2 Jan 2022 14:10:03 -0800 Subject: fix incorrect decoder used in docs test --- src/real_mode/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/real_mode/mod.rs b/src/real_mode/mod.rs index f4cfdd5..4b8ad6d 100644 --- a/src/real_mode/mod.rs +++ b/src/real_mode/mod.rs @@ -807,11 +807,11 @@ const REGISTER_CLASS_NAMES: &[&'static str] = &[ /// instruction. as an example: /// ``` /// use yaxpeax_x86::real_mode::{self as amd64}; -/// use yaxpeax_x86::real_mode::{Opcode, Operand, RegisterClass}; +/// use yaxpeax_x86::real_mode::{Opcode, Operand, RegisterClass, InstDecoder}; /// use yaxpeax_arch::{Decoder, U8Reader}; /// /// let movsx_ax_cl = &[0x0f, 0xbe, 0xc1]; -/// let decoder = amd64::InstDecoder::default(); +/// let decoder = InstDecoder::default(); /// let instruction = decoder /// .decode(&mut U8Reader::new(movsx_ax_cl)) /// .expect("can decode"); -- cgit v1.1