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.
attr
self
1 parent 0a5b38f commit 9e3e3a4Copy full SHA for 9e3e3a4
src/librustdoc/clean/mod.rs
@@ -859,8 +859,8 @@ impl Attributes {
859
let mut cfg = Cfg::True;
860
let mut doc_line = 0;
861
862
- /// Converts `self` to a normal `#[doc="foo"]` comment, if it is a
863
- /// comment like `///` or `/** */`. (Returns `self` unchanged for
+ /// Converts `attr` to a normal `#[doc="foo"]` comment, if it is a
+ /// comment like `///` or `/** */`. (Returns `attr` unchanged for
864
/// non-sugared doc attributes.)
865
pub fn with_desugared_doc<T>(attr: &Attribute, f: impl FnOnce(&Attribute) -> T) -> T {
866
if attr.is_sugared_doc {
0 commit comments