除了让每个函数打印自己以外,试试学习一下“文档注解(doc comments)”。看看你能不能将房间描述写成文档注解,然后修改运行它的代码,让它把文档注解打印出来。
基于16个网页-相关网页
Rust有两种需要你了解的注释格式: 行注释 ( line comments )和 文档注释 ( doc comments )。 // Line comments are anything after '//' and extend to the end of the line.
基于1个网页-相关网页
Quick Doc Review gives you an instant private space for gathering comments on any Word and HTML document.
Quick Doc Review 给你一个可以在任何word和html文档收集注释的私有空间。
youdao
应用推荐
模块上移
模块下移
不移动