diff --git a/src/rust/iced-x86/src/formatter/symres.rs b/src/rust/iced-x86/src/formatter/symres.rs index 67cd7fa0c..fc675e6c5 100644 --- a/src/rust/iced-x86/src/formatter/symres.rs +++ b/src/rust/iced-x86/src/formatter/symres.rs @@ -27,9 +27,9 @@ pub trait SymbolResolver { #[derive(Debug, Clone, Eq, PartialEq, Hash)] pub enum SymResString<'a> { /// Contains a `&'a str` - Str(&'a str), + Str(#[doc = "The str"] &'a str), /// Contains a `String` - String(String), + String(#[doc = "The string"] String), } impl Default for SymResString<'_> { #[must_use] @@ -103,9 +103,9 @@ impl<'a> SymResTextPart<'a> { #[derive(Debug, Clone, Eq, PartialEq, Hash)] pub enum SymResTextInfo<'a> { /// Text and color - Text(SymResTextPart<'a>), + Text(#[doc = "Text and color"] SymResTextPart<'a>), /// Text and color (vector) - TextVec(&'a [SymResTextPart<'a>]), + TextVec(#[doc = "Text and color"] &'a [SymResTextPart<'a>]), } impl<'a> SymResTextInfo<'a> {