mirror of
https://github.com/rust-lang-cn/book-cn.git
synced 2025-02-02 23:38:41 +08:00
just don't talk about inner doc comments
This commit is contained in:
parent
f6534b1754
commit
db59879a46
@ -77,10 +77,3 @@ src/main.rs:1:1: 1:27 error: expected item after doc comment
|
|||||||
src/main.rs:1 /// What am I documenting?
|
src/main.rs:1 /// What am I documenting?
|
||||||
^~~~~~~~~~~~~~~~~~~~~~~~~~
|
^~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
```
|
```
|
||||||
|
|
||||||
### Inner documentation comments
|
|
||||||
|
|
||||||
There is a secondary form of a documentation comment, an ‘inner’ documentation
|
|
||||||
comment. Inner documentation comments look like this: `//!`. They are only
|
|
||||||
really used to document modules, however, and so we will talk about them in the
|
|
||||||
modules section.
|
|
||||||
|
Loading…
Reference in New Issue
Block a user