Created
May 20, 2015 20:32
-
-
Save mkomitee/d22b845dd63d74702b23 to your computer and use it in GitHub Desktop.
exit nonzero
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn main() { | |
let mut exit_code = 0; | |
{ | |
// real work which may mutate exit_code | |
exit_code = 1; | |
} | |
process::exit(exit_code); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment