Skip to content

Commit e389ffa

Browse files
authored
Rollup merge of rust-lang#147699 - aDotInTheVoid:doc-comment-doc-comment, r=jdonszelmann
Clairify docs for `AttributeKind::DocComment` Makes it clear that this represents `#[doc = "content"]`, but not `#[doc(hidden)]` (or other uses of the `#[doc(...)]` attribute). r? `@jdonszelmann`
2 parents 7203051 + ff95799 commit e389ffa

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)