From 43a6554770d6bfd74c05d37af772e0a65ef54ab1 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 5 Jul 2026 01:44:03 +0000 Subject: some doc comments covered incorrect modes --- src/real_mode/display.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/real_mode/display.rs') diff --git a/src/real_mode/display.rs b/src/real_mode/display.rs index 98f292b..b6096cd 100644 --- a/src/real_mode/display.rs +++ b/src/real_mode/display.rs @@ -3531,22 +3531,22 @@ mod buffer_sink { /// ### example /// /// ``` - /// use yaxpeax_x86::long_mode::InstDecoder; - /// use yaxpeax_x86::long_mode::InstructionTextBuffer; - /// use yaxpeax_x86::long_mode::DisplayStyle; + /// use yaxpeax_x86::real_mode::InstDecoder; + /// use yaxpeax_x86::real_mode::InstructionTextBuffer; + /// use yaxpeax_x86::real_mode::DisplayStyle; /// /// let bytes = &[0x33, 0xc0]; /// let inst = InstDecoder::default().decode_slice(bytes).expect("can decode"); /// let mut text_buf = InstructionTextBuffer::new(); /// assert_eq!( /// text_buf.format_inst(&inst.display_with(DisplayStyle::Intel)).expect("can format"), - /// "xor eax, eax" + /// "xor ax, ax" /// ); /// /// // or, getting the formatted instruction with `text_str`: /// assert_eq!( /// text_buf.text_str(), - /// "xor eax, eax" + /// "xor ax, ax" /// ); /// ``` pub struct InstructionTextBuffer { -- cgit v1.1