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)文档块注释,使用“/**...*/”。
示例如下: