File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Comments
2
2
3
- r[ comments.lexical ]
3
+ r[ comments.syntax ]
4
4
5
5
> ** <sup >Lexer</sup >** \
6
6
> LINE_COMMENT :\
@@ -53,7 +53,7 @@ Line doc comments beginning with exactly _three_ slashes (`///`), and block
53
53
doc comments (` /** ... */ ` ), both outer doc comments, are interpreted as a
54
54
special syntax for [ ` doc ` attributes] .
55
55
56
- r[ comments.doc.attribute ]
56
+ r[ comments.doc.attributes ]
57
57
That is, they are equivalent to writing
58
58
` #[doc="..."] ` around the body of the comment, i.e., ` /// Foo ` turns into
59
59
` #[doc="Foo"] ` and ` /** Bar */ ` turns into ` #[doc="Bar"] ` .
@@ -63,12 +63,12 @@ Line comments beginning with `//!` and block comments `/*! ... */` are
63
63
doc comments that apply to the parent of the comment, rather than the item
64
64
that follows.
65
65
66
- r[ comments.doc.inner-attribute ]
66
+ r[ comments.doc.inner-attributes ]
67
67
That is, they are equivalent to writing ` #![doc="..."] ` around
68
68
the body of the comment. ` //! ` comments are usually used to document
69
69
modules that occupy a source file.
70
70
71
- r[ comments.doc.bare-cr ]
71
+ r[ comments.doc.bare-crs ]
72
72
The character ` U+000D ` (CR) is not allowed in doc comments.
73
73
74
74
> ** 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