mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 02:27:39 +03:00
cc27e3f08b
Less unwrap() in documentation I think the common use of `.unwrap()` in examples makes it overrepresented, looking like a more typical way of error handling than it really is in real programs. Therefore, this PR changes a bunch of examples to use different error handling methods, primarily the `?` operator. Additionally, `unwrap()` docs warn that it might abort the program.