Update chapter_3_4.md

This commit is contained in:
令狐一冲
2023-05-17 14:00:15 +08:00
committed by GitHub
parent 8f9cd8bbb8
commit b15725aca5

View File

@@ -12,8 +12,9 @@
代码注释有两种:
1行注释使用“//”
2块注释使用“/*... */”
1行注释使用“//”
2块注释使用“/*... */”。
示例如下:
```
@@ -41,6 +42,7 @@ fn main() {
Rust提供了cargo doc命令可以把文档注释转换成html网页最终展示给用户。文档注释也有文档行注释和文档块注释
1文档行注释使用“///”;
2文档块注释使用“/**...*/”。
示例如下: