We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
#[doc ...]
1 parent 2f82881 commit b333e79Copy full SHA for b333e79
example/src/lib.rs
@@ -33,6 +33,7 @@ pub mod module {
33
//! ```
34
}
35
36
+#[doc(cfg(feature = "xxx"))]
37
#[cfg_attr(doc, svgbobdoc::transform)]
38
/// Some function.
39
///
src/lib.rs
@@ -100,10 +100,8 @@ impl MaybeDocAttr {
100
Err(Error::new(nv.lit.span(), "doc comment must be a string"))
101
102
} else {
103
- Err(Error::new(
104
- meta.span(),
105
- "doc comment must be a name-value attribute",
106
- ))
+ // Ignore unrecognized form
+ Ok(MaybeDocAttr::Other(attr))
107
108
109
Ok(MaybeDocAttr::Other(attr))
0 commit comments