This commit is contained in:
Corey Farwell 2017-02-20 23:10:32 -05:00 committed by Steve Klabnik
parent 72497d5d13
commit 94f3c1eee8
1 changed files with 3 additions and 1 deletions

View File

@ -5,7 +5,7 @@ block (`/* ... */`) comment forms. Nested block comments are supported.
Line comments beginning with exactly _three_ slashes (`///`), and block
comments (`/** ... */`), are interpreted as a special syntax for `doc`
[attributes](#attributes). That is, they are equivalent to writing
[attributes]. That is, they are equivalent to writing
`#[doc="..."]` around the body of the comment, i.e., `/// Foo` turns into
`#[doc="Foo"]`.
@ -16,3 +16,5 @@ the body of the comment. `//!` comments are usually used to document
modules that occupy a source file.
Non-doc comments are interpreted as a form of whitespace.
[attributes]: attributes.html