Skip to content

Commit 8f029b2

Browse files
committed
Fix typos
1 parent f775825 commit 8f029b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

text/3621-derive-smart-pointer.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ are verified semantically by the compiler when checking the generated
268268

269269
The macro will expand to two implementations, one for
270270
[`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.
272272

273273
The derive macro will implement the traits for the type according to the
274274
following procedure:
@@ -564,7 +564,7 @@ compatibility concerns with `Pin`. We cannot prevent you from using `Pin::new`
564564
with structs that have malicious `Deref` implementations. However, one possible
565565
place we can intervene is the coercion from `Pin<SmartPointer<MyStruct>>` to
566566
`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
568568
introduce a `StableDeref` trait:
569569
```rs
570570
/// # Safety
@@ -680,7 +680,7 @@ current restrictions are just whatever [`DispatchFromDyn`] requires today, and
680680
proposals for relaxing them have been seen before (e.g., in the
681681
[pre-RFC][pre-rfc].)
682682

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
684684
only one non-zero-sized field. This could allow implementations of `Rc` and
685685
`Arc` that store the value and refcount in two different allocations, like how
686686
the C++ `shared_ptr` works.

0 commit comments

Comments
 (0)