Skip to content

Commit

Permalink
Rollup merge of rust-lang#82063 - NULLx76:fix-minor-typo, r=jonas-sch…
Browse files Browse the repository at this point in the history
…ievink

Fixed minor typo in catch_unwind docs

Changed "a an exception" to "an exception" inside of the `std::panic::catch_unwind` docs.
  • Loading branch information
JohnTitor authored Feb 15, 2021
2 parents 0a4f934 + ee9709f commit 923dd8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/panic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ impl<S: Stream> Stream for AssertUnwindSafe<S> {
/// aborting the process as well. This function *only* catches unwinding panics,
/// not those that abort the process.
///
/// Also note that unwinding into Rust code with a foreign exception (e.g. a
/// Also note that unwinding into Rust code with a foreign exception (e.g.
/// an exception thrown from C++ code) is undefined behavior.
///
/// # Examples
Expand Down

0 comments on commit 923dd8a

Please sign in to comment.