Skip to content

Commit 741926d

Browse files
steveklabnikManishearth
authored andcommitted
Describe doc attribute in the reference
FIxes rust-lang#7963.
1 parent 79ac8f5 commit 741926d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

reference.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2014,6 +2014,7 @@ On `struct`s:
20142014
- `unsafe_no_drop_flag` - on structs, remove the flag that prevents
20152015
destructors from being run twice. Destructors might be run multiple times on
20162016
the same object with this attribute.
2017+
- `doc` - Doc comments such as `/// foo` are equivalent to `#[doc = "foo"]`.
20172018

20182019
### Conditional compilation
20192020

0 commit comments

Comments
 (0)