Skip to content

Commit cc29656

Browse files
committed
Add review changes
1 parent 9a2836e commit cc29656

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/comments.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Comments
22

3-
r[comments.lexical]
3+
r[comments.syntax]
44

55
> **<sup>Lexer</sup>**\
66
> LINE_COMMENT :\
@@ -53,7 +53,7 @@ Line doc comments beginning with exactly _three_ slashes (`///`), and block
5353
doc comments (`/** ... */`), both outer doc comments, are interpreted as a
5454
special syntax for [`doc` attributes].
5555

56-
r[comments.doc.attribute]
56+
r[comments.doc.attributes]
5757
That is, they are equivalent to writing
5858
`#[doc="..."]` around the body of the comment, i.e., `/// Foo` turns into
5959
`#[doc="Foo"]` and `/** Bar */` turns into `#[doc="Bar"]`.
@@ -63,12 +63,12 @@ Line comments beginning with `//!` and block comments `/*! ... */` are
6363
doc comments that apply to the parent of the comment, rather than the item
6464
that follows.
6565

66-
r[comments.doc.inner-attribute]
66+
r[comments.doc.inner-attributes]
6767
That is, they are equivalent to writing `#![doc="..."]` around
6868
the body of the comment. `//!` comments are usually used to document
6969
modules that occupy a source file.
7070

71-
r[comments.doc.bare-cr]
71+
r[comments.doc.bare-crs]
7272
The character `U+000D` (CR) is not allowed in doc comments.
7373

7474
> **Note**: The sequence `U+000D` (CR) immediately followed by `U+000A` (LF) would have been previously transformed into a single `U+000A` (LF).

0 commit comments

Comments
 (0)