Skip to content

Commit 2b5d24a

Browse files
committed
Auto merge of #32940 - birkenfeld:patch-3, r=alexcrichton
Fix a typo and add a missing word
2 parents 073a09f + 05a3fea commit 2b5d24a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/panic.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,9 @@ impl<R, F: FnOnce() -> R> FnOnce<()> for AssertRecoverSafe<F> {
346346
/// It is **not** recommended to use this function for a general try/catch
347347
/// mechanism. The `Result` type is more appropriate to use for functions that
348348
/// can fail on a regular basis. Additionally, this function is not guaranteed
349-
/// to catch all panics, see the "Notes" sectino below.
349+
/// to catch all panics, see the "Notes" section below.
350350
///
351-
/// The closure provided is required to adhere to the `UnwindSafe` to ensure
351+
/// The closure provided is required to adhere to the `UnwindSafe` trait to ensure
352352
/// that all captured variables are safe to cross this boundary. The purpose of
353353
/// this bound is to encode the concept of [exception safety][rfc] in the type
354354
/// system. Most usage of this function should not need to worry about this

0 commit comments

Comments
 (0)