Skip to content

Instantly share code, notes, and snippets.

@tailhook
Last active May 29, 2016 00:13
Show Gist options
  • Select an option

  • Save tailhook/ecfaf82d5b5304ef2f7f97cddb94125d to your computer and use it in GitHub Desktop.

Select an option

Save tailhook/ecfaf82d5b5304ef2f7f97cddb94125d to your computer and use it in GitHub Desktop.
fn render_docs(source: &Path, &dest: &Path) -> Result<(), ErrorType> {
// ... read files at source
// ... write files to dest
Ok(())
}
fn main() {
// .. parse command line
match render_docs(&src, &dst) {
Ok(()) => {}
Err(e) => {
writeln!(&mut stderr(), "Error: {}", e).ok();
exit(1);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment