From e16faf58cc1e47e431bbf110bf9cda0047909630 Mon Sep 17 00:00:00 2001 From: iximeow Date: Mon, 13 May 2024 23:07:39 -0700 Subject: fix cfg(!default,colors,serde) imports, doc comments --- src/annotation/mod.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/annotation') 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(decoder: A::Decoder, buf: &[u8]) //! where //! A::Decoder: AnnotatingDecoder, @@ -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); //! } //! } //! ``` -- cgit v1.1