We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The "Error Handling" section of the book has a code example error under the "Adding Functionality" section: https://doc.rust-lang.org/book/error-handling.html#adding-functionality
the second code example shows the use of a macro named "fatal!" which does not exist:
match search(&args.arg_data_path, &args.arg_city) { Err(CliError::NotFound) if args.flag_quiet => process::exit(1), Err(err) => fatal!("{}", err), Ok(pops) => for pop in pops { println!("{}, {}: {:?}", pop.city, pop.country, pop.count); } }
and (on a much more minor scale) the code sample directly above has a misspelling of the word "quiet" as "quit":
opts.optflag("q", "quit", "Silences errors and warnings.");
The text was updated successfully, but these errors were encountered:
d9df16b
No branches or pull requests
The "Error Handling" section of the book has a code example error under the "Adding Functionality" section: https://doc.rust-lang.org/book/error-handling.html#adding-functionality
the second code example shows the use of a macro named "fatal!" which does not exist:
and (on a much more minor scale) the code sample directly above has a misspelling of the word "quiet" as "quit":
The text was updated successfully, but these errors were encountered: