basic/comment #1075
Replies: 16 comments 4 replies
-
/// 我怎么受不了这个文档注释,是我太菜么,看着就像一堆行代码注释 |
Beta Was this translation helpful? Give feedback.
-
模块注释是对模块文件的注释,而不是对单个模块的注释,所以特别强调 说实在的rust这个oacjage crate module的概念有些矫情 文档中可以直接写测试用例倒是不错 |
Beta Was this translation helpful? Give feedback.
-
在综合例子中,既然使用了 use art::mix;
use art::PrimaryColor; |
Beta Was this translation helpful? Give feedback.
-
这章好像没什么人,大家都不喜欢写注释是吧 😅 |
Beta Was this translation helpful? Give feedback.
-
一个综合例子 这部分的src/lib.rs 直接复制内容是有问题,自动加了一些内容进粘贴板 |
Beta Was this translation helpful? Give feedback.
-
一个文档玩出花🌸来了,我受不了啊 |
Beta Was this translation helpful? Give feedback.
-
Rust注释的花样也真多。。 |
Beta Was this translation helpful? Give feedback.
-
连注释都这么花哨~~ |
Beta Was this translation helpful? Give feedback.
-
功能太强大了 |
Beta Was this translation helpful? Give feedback.
-
是在代码块```中使用# 开头的会被隐藏? |
Beta Was this translation helpful? Give feedback.
-
今后可能真的不需要写注释了,AI自动注释太牛了 |
Beta Was this translation helpful? Give feedback.
-
Rust的文档功能太强大了 |
Beta Was this translation helpful? Give feedback.
-
比 js 的 typedoc 和 jsdoc 强的太多了 |
Beta Was this translation helpful? Give feedback.
-
我一直对 lib.rs 和 main.rs 之间的关系很糊涂. 为啥在 lib.rs 中声明 mod, main.rs 使用是不需要用 lib.rs 作用是啥? |
Beta Was this translation helpful? Give feedback.
-
“文档测试(Doc Test)”这部分必须是库项目才能直接cargo test运行,我本地是个二进制项目跑了半天也不好使😒 |
Beta Was this translation helpful? Give feedback.
-
basic/comment
https://course.rs/basic/comment.html
Beta Was this translation helpful? Give feedback.
All reactions