Skip to content

Commit ff95799

Browse files
committed
Clairify docs for AttributeKind::DocComment
Makes it clear that this represents `#[doc = "content"]`, but not `#[doc(hidden)]` (or other uses of the `#[doc(...)]` attribute).
1 parent e100792 commit ff95799

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_hir/src/attrs/data_structures.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ pub enum AttributeKind {
516516
/// Represents `#[rustc_do_not_implement_via_object]`.
517517
DoNotImplementViaObject(Span),
518518

519-
/// Represents [`#[doc]`](https://doc.rust-lang.org/stable/rustdoc/write-documentation/the-doc-attribute.html).
519+
/// Represents [`#[doc = "..."]`](https://doc.rust-lang.org/stable/rustdoc/write-documentation/the-doc-attribute.html).
520520
DocComment { style: AttrStyle, kind: CommentKind, span: Span, comment: Symbol },
521521

522522
/// Represents `#[rustc_dummy]`.

0 commit comments

Comments
 (0)