File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -99,13 +99,12 @@ Comments in Rust code follow the general C++ style of line (`//`) and
99
99
block (` /* ... */ ` ) comment forms. Nested block comments are supported.
100
100
101
101
Line comments beginning with exactly _ three_ slashes (` /// ` ), and block
102
- comments beginning with exactly one repeated asterisk in the block-open
103
- sequence (` /** ` ), are interpreted as a special syntax for ` doc `
102
+ comments (` /** ... */ ` ), are interpreted as a special syntax for ` doc `
104
103
[ attributes] ( #attributes ) . That is, they are equivalent to writing
105
104
` #[doc="..."] ` around the body of the comment, i.e., ` /// Foo ` turns into
106
105
` #[doc="Foo"] ` .
107
106
108
- Line comments beginning with ` //! ` and block comments beginning with ` /*! ` are
107
+ Line comments beginning with ` //! ` and block comments ` /*! ... !*/ ` are
109
108
doc comments that apply to the parent of the comment, rather than the item
110
109
that follows. That is, they are equivalent to writing ` #![doc="..."] ` around
111
110
the body of the comment. ` //! ` comments are usually used to document
You can’t perform that action at this time.
0 commit comments