Skip to content

Commit c4778dc

Browse files
authored
Rollup merge of #149720 - jtracey:patch-1, r=notriddle
rustdoc book: mention inner doc attribute Couldn't find this documented anywhere else.
2 parents 990b663 + a3a041d commit c4778dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/rustdoc/src/write-documentation/the-doc-attribute.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ The `#[doc]` attribute lets you control various aspects of how `rustdoc` does
44
its job.
55

66
The most basic function of `#[doc]` is to handle the actual documentation
7-
text. That is, `///` is syntax sugar for `#[doc]`. This means that these two
8-
are the same:
7+
text. That is, `///` is syntax sugar for `#[doc]` (as is `//!` for `#![doc]`).
8+
This means that these two are the same:
99

1010
```rust,no_run
1111
/// This is a doc comment.

0 commit comments

Comments
 (0)