Rust 程序设计语言 简体中文版 1.85.0
准确的包文档有助于其他用户理解如何以及何时使用它们,所以花一些时间编写文档是值得 的。第三章中我们讨论了如何使用双斜杠 // 注释 Rust 代码。Rust 也有特定的用于文档的注 释类型,通常被称为文档注释(documentation comments),它们会生成 HTML 文档。这些 HTML 展示公有 API 文档注释的内容,它们意在让对库感兴趣的程序员理解如何使用这个 crate,而不是它是如何被实现的。 文档注释使用三斜杠 publish Updating crates.io index warning: manifest has no description, license, license-file, documentation, 308/562Rust 程序设计语言 简体中文版 homepage or repository. See https://doc.rust-lang.org/cargo/reference/manifest dangerous(); | ^^^^^^^^^^^ call to unsafe function | = note: consult the function's documentation for information on how to avoid undefined behavior For more information about this error, try0 码力 | 562 页 | 3.23 MB | 8 天前3
共 1 条
- 1