@@ -268,7 +268,7 @@ are verified semantically by the compiler when checking the generated
268
268
269
269
The macro will expand to two implementations, one for
270
270
[ ` core::ops::CoerceUnsized ` ] and one for [ ` core::ops::DispatchFromDyn ` ] . This
271
- is enough for a type to participe in unsizing coercions and dynamic dispatch.
271
+ is enough for a type to participate in unsizing coercions and dynamic dispatch.
272
272
273
273
The derive macro will implement the traits for the type according to the
274
274
following procedure:
@@ -564,7 +564,7 @@ compatibility concerns with `Pin`. We cannot prevent you from using `Pin::new`
564
564
with structs that have malicious ` Deref ` implementations. However, one possible
565
565
place we can intervene is the coercion from ` Pin<SmartPointer<MyStruct>> ` to
566
566
` Pin<SmartPointer<dyn MyTrait>> ` . If you need to use unsafe before those
567
- coerceions are possible, then the problem is solved. For example, we might
567
+ coercions are possible, then the problem is solved. For example, we might
568
568
introduce a ` StableDeref ` trait:
569
569
``` rs
570
570
/// # Safety
@@ -680,7 +680,7 @@ current restrictions are just whatever [`DispatchFromDyn`] requires today, and
680
680
proposals for relaxing them have been seen before (e.g., in the
681
681
[ pre-RFC] [ pre-rfc ] .)
682
682
683
- One example of a restriction that we could lift is the restrction that there is
683
+ One example of a restriction that we could lift is the restriction that there is
684
684
only one non-zero-sized field. This could allow implementations of ` Rc ` and
685
685
` Arc ` that store the value and refcount in two different allocations, like how
686
686
the C++ ` shared_ptr ` works.
0 commit comments