Skip to content

Commit 94f3c1e

Browse files
frewsxcvsteveklabnik
authored andcommitted
Comments
1 parent 72497d5 commit 94f3c1e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/doc/reference/src/comments.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ block (`/* ... */`) comment forms. Nested block comments are supported.
55

66
Line comments beginning with exactly _three_ slashes (`///`), and block
77
comments (`/** ... */`), are interpreted as a special syntax for `doc`
8-
[attributes](#attributes). That is, they are equivalent to writing
8+
[attributes]. That is, they are equivalent to writing
99
`#[doc="..."]` around the body of the comment, i.e., `/// Foo` turns into
1010
`#[doc="Foo"]`.
1111

@@ -16,3 +16,5 @@ the body of the comment. `//!` comments are usually used to document
1616
modules that occupy a source file.
1717

1818
Non-doc comments are interpreted as a form of whitespace.
19+
20+
[attributes]: attributes.html

0 commit comments

Comments
 (0)