fix: ```显示问题

pull/175/head
chenxuuu 3 years ago
parent 8c36f029ae
commit 2ef9ed69ed
No known key found for this signature in database
GPG Key ID: B1A462D4300513F3

@ -84,22 +84,22 @@ pub fn add_one(x: i32) -> i32 {
#### 文档块注释`/** ... */`
与代码注释一样,文档也有块注释,当注释内容多时,可以减少`///`的使用:
```rust
````rust
/** `add_two`将指定值加2.
# Examples
\`\`\`
```
let arg = 5;
let answer = my_crate::add_two(arg);
assert_eq!(7, answer);
\`\`\`
```
*/
pub fn add_two(x: i32) -> i32 {
x + 2
}
```
````
#### 查看文档cargo doc
锦衣不夜行,这是中国人的传统美德。我们写了这么漂亮的文档注释,当然要看看网页中是什么效果咯。

Loading…
Cancel
Save