diff options
| author | iximeow <me@iximeow.net> | 2026-07-05 01:44:03 +0000 |
|---|---|---|
| committer | iximeow <me@iximeow.net> | 2026-07-05 01:44:03 +0000 |
| commit | 43a6554770d6bfd74c05d37af772e0a65ef54ab1 (patch) | |
| tree | 1fcf66889c81de3b0c26554c48c4ae4dec4ea019 /src/real_mode/display.rs | |
| parent | a4e667b20eef547bfd010b8b112710120f64a0b8 (diff) | |
some doc comments covered incorrect modesHEADno-gods-no-
Diffstat (limited to 'src/real_mode/display.rs')
| -rw-r--r-- | src/real_mode/display.rs | 10 |
1 files changed, 5 insertions, 5 deletions
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 { |
