You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-25 02:06:46 +02:00
Add Rustdoc comments for functions.
This commit is contained in:
@ -92,6 +92,8 @@ fn main() -> anyhow::Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Writes the given output file based on the given code text from the Markdown input, processing
|
||||
/// include directives as necessary.
|
||||
fn write_output(
|
||||
text: CowStr,
|
||||
input_directory: &Path,
|
||||
@ -123,6 +125,8 @@ fn write_output(
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Writes the given `section` (or all, if it is `None`) of the given included file (relative to the
|
||||
/// `input_directory`) to the `output_file`.
|
||||
fn write_include(
|
||||
include_filename: &str,
|
||||
section: Option<&str>,
|
||||
|
Reference in New Issue
Block a user