-
Couldn't load subscription status.
- Fork 13.9k
Closed
Labels
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
Description
@steveklabnik wrote on reddit, this this is a common style in std:
/// A doc test using `try!`:
///
/// ```
/// # fn f() -> io::Result<()> {
/// let x = try!(package.open()); // danger, might explode
/// x.insert("valuables", 42)
/// try!(x.close_and_reactivate());
/// # Ok(())
/// # }
/// # f();
/// ```
We should add that to the documentation chapter of TRPL and maybe also to the docs of try!.
Metadata
Metadata
Assignees
Labels
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.