File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 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
5353doc comments (` /** ... */ ` ), both outer doc comments, are interpreted as a
5454special syntax for [ ` doc ` attributes] .
5555
56- r[ comments.doc.attribute ]
56+ r[ comments.doc.attributes ]
5757That 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
6363doc comments that apply to the parent of the comment, rather than the item
6464that follows.
6565
66- r[ comments.doc.inner-attribute ]
66+ r[ comments.doc.inner-attributes ]
6767That is, they are equivalent to writing ` #![doc="..."] ` around
6868the body of the comment. ` //! ` comments are usually used to document
6969modules that occupy a source file.
7070
71- r[ comments.doc.bare-cr ]
71+ r[ comments.doc.bare-crs ]
7272The 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).
You can’t perform that action at this time.
0 commit comments