@@ -73,15 +73,15 @@ pub fn take_handler() -> Box<Fn(&PanicInfo) + 'static + Sync + Send> {
7373///
7474/// [rfc]: https://github.com/rust-lang/rfcs/blob/master/text/1236-stabilize-catch-panic.md
7575///
76- /// ## What is `RecoverSafe `?
76+ /// ## What is `UnwindSafe `?
7777///
7878/// Now that we've got an idea of what panic safety is in Rust, it's also
7979/// important to understand what this trait represents. As mentioned above, one
8080/// way to witness broken invariants is through the `recover` function in this
8181/// module as it allows catching a panic and then re-using the environment of
8282/// the closure.
8383///
84- /// Simply put, a type `T` implements `RecoverSafe ` if it cannot easily allow
84+ /// Simply put, a type `T` implements `UnwindSafe ` if it cannot easily allow
8585/// witnessing a broken invariant through the use of `recover` (catching a
8686/// panic). This trait is a marker trait, so it is automatically implemented for
8787/// many types, and it is also structurally composed (e.g. a struct is recover
@@ -108,7 +108,7 @@ pub fn take_handler() -> Box<Fn(&PanicInfo) + 'static + Sync + Send> {
108108///
109109/// Is not intended that most types or functions need to worry about this trait.
110110/// It is only used as a bound on the `recover` function and as mentioned above,
111- /// the lack of `unsafe` means it is mostly an advisory. The `AssertRecoverSafe `
111+ /// the lack of `unsafe` means it is mostly an advisory. The `AssertUnwindSafe `
112112/// wrapper struct in this module can be used to force this trait to be
113113/// implemented for any closed over variables passed to the `recover` function
114114/// (more on this below).
@@ -246,7 +246,7 @@ impl<T: RefUnwindSafe + ?Sized> UnwindSafe for Rc<T> {}
246246#[ stable( feature = "catch_unwind" , since = "1.9.0" ) ]
247247impl < T : RefUnwindSafe + ?Sized > UnwindSafe for Arc < T > { }
248248
249- // Pretty simple implementations for the `RefRecoverSafe ` marker trait,
249+ // Pretty simple implementations for the `RefUnwindSafe ` marker trait,
250250// basically just saying that this is a marker trait and `UnsafeCell` is the
251251// only thing which doesn't implement it (which then transitively applies to
252252// everything else).
0 commit comments