aboutsummaryrefslogtreecommitdiff
path: root/src/annotation
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2024-05-13 23:07:39 -0700
committeriximeow <me@iximeow.net>2024-05-13 23:07:39 -0700
commite16faf58cc1e47e431bbf110bf9cda0047909630 (patch)
tree6b3e44fc672c7f49c51927d53bed1d86152bd615 /src/annotation
parentffa12c204743d455ae5ac13473da3387c068c39d (diff)
fix cfg(!default,colors,serde) imports, doc comments
Diffstat (limited to 'src/annotation')
-rw-r--r--src/annotation/mod.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/annotation/mod.rs b/src/annotation/mod.rs
index 0139cf3..0248b94 100644
--- a/src/annotation/mod.rs
+++ b/src/annotation/mod.rs
@@ -19,6 +19,11 @@
//! in a generic setting, there isn't much to do with a `FieldDescription` other than display it. a
//! typical use might look something like:
//! ```
+//! use core::fmt;
+//!
+//! use yaxpeax_arch::annotation::{AnnotatingDecoder, VecSink};
+//! use yaxpeax_arch::{Arch, Reader, U8Reader};
+//!
//! fn show_field_descriptions<A: Arch>(decoder: A::Decoder, buf: &[u8])
//! where
//! A::Decoder: AnnotatingDecoder<A>,
@@ -32,7 +37,7 @@
//!
//! println!("decoded instruction {}", inst);
//! for (start, end, desc) in sink.records.iter() {
-//! println(" bits [{}, {}]: {}", start, end, desc);
+//! println!(" bits [{}, {}]: {}", start, end, desc);
//! }
//! }
//! ```