mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-03-24 07:21:05 +02:00
Add Rustdoc comments for functions.
This commit is contained in:
parent
9372d14378
commit
adabd342ff
@ -92,6 +92,8 @@ fn main() -> anyhow::Result<()> {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Writes the given output file based on the given code text from the Markdown input, processing
|
||||||
|
/// include directives as necessary.
|
||||||
fn write_output(
|
fn write_output(
|
||||||
text: CowStr,
|
text: CowStr,
|
||||||
input_directory: &Path,
|
input_directory: &Path,
|
||||||
@ -123,6 +125,8 @@ fn write_output(
|
|||||||
Ok(())
|
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(
|
fn write_include(
|
||||||
include_filename: &str,
|
include_filename: &str,
|
||||||
section: Option<&str>,
|
section: Option<&str>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user