1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 11:07:44 +00:00

doc: show a warning when no tldr example

This commit is contained in:
Sylvestre Ledru 2023-05-08 15:49:56 +02:00
parent 51da8bf7b3
commit caf9bfcadc

View file

@ -216,6 +216,10 @@ impl<'a, 'b> MDWriter<'a, 'b> {
} else if let Some(f) = get_zip_content(zip, &format!("pages/linux/{}.md", self.name)) { } else if let Some(f) = get_zip_content(zip, &format!("pages/linux/{}.md", self.name)) {
f f
} else { } else {
println!(
"Warning: Could not find tldr examples for page '{}'",
self.name
);
return Ok(()); return Ok(());
}; };