diff options
author | iximeow <me@iximeow.net> | 2022-01-02 14:10:03 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2022-01-02 14:58:51 -0800 |
commit | 1dc77c26e1de52f43b0841f60c42f9581ac31f77 (patch) | |
tree | 574bc0e403c8c58e495519128dfd93a6a8fe9534 /src | |
parent | c548d9cf08289e32069d5938b0d6d428cbe0821f (diff) |
fix incorrect decoder used in docs test
Diffstat (limited to 'src')
-rw-r--r-- | src/real_mode/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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"); |