Skip to content
New issue

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

Use realistic error handling in example code #110

Closed
Tracked by #120
dtolnay opened this issue May 31, 2017 · 1 comment
Closed
Tracked by #120

Use realistic error handling in example code #110

dtolnay opened this issue May 31, 2017 · 1 comment
Labels
E-easy Effort: Easy! Start here :D
Milestone

Comments

@dtolnay
Copy link

dtolnay commented May 31, 2017

Per this guideline, we prefer ? in examples over try! or unwrap.

The first example in lib.rs should be using ? instead of unwrap where it says:

let mut resp = reqwest::get("https://www.rust-lang.org").unwrap();
@seanmonstar
Copy link
Owner

Fixed in #135.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-easy Effort: Easy! Start here :D
Projects
None yet
Development

No branches or pull requests

2 participants