mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-25 04:56:23 +00:00
717 B
717 B
date | id | title |
---|---|---|
2020-11-19 | f878143f-448c-4a1a-9a6e-7d2bf5a174ca | rustdoc |
Description
Rustdoc1 is the built in library documentation tool included in the Rust distribution and allows you to write documentation in Markdown2.
Syntax
pub mod foo {
/// Some docs for `Foo`
///
/// You may want to use `Foo` with [`Bar`].
///
/// [`Bar`]: ../bar/struct.Bar.html
pub struct Foo;
}
pub mod bar {
/// Some docs for `Bar`
///
/// You may want to use `Bar` with [`Foo`].
///
/// [`Foo`]: ../foo/struct.Foo.html
pub struct Bar;
}