Skip to content

Commit 4d43d16

Browse files
committed
Describe doc attribute in the reference
FIxes #7963.
1 parent e2cd459 commit 4d43d16

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/doc/reference.md

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

20172018
### Conditional compilation
20182019

0 commit comments

Comments
 (0)