rustdoc book: mention inner doc attribute
This commit is contained in:
parent
ba86c0460b
commit
a3a041da11
1 changed files with 2 additions and 2 deletions
|
|
@ -4,8 +4,8 @@ The `#[doc]` attribute lets you control various aspects of how `rustdoc` does
|
|||
its job.
|
||||
|
||||
The most basic function of `#[doc]` is to handle the actual documentation
|
||||
text. That is, `///` is syntax sugar for `#[doc]`. This means that these two
|
||||
are the same:
|
||||
text. That is, `///` is syntax sugar for `#[doc]` (as is `//!` for `#![doc]`).
|
||||
This means that these two are the same:
|
||||
|
||||
```rust,no_run
|
||||
/// This is a doc comment.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue