@@ -268,7 +268,7 @@ impl Frob for MyType {
268
268
269
269
## Bodies for trait aliases
270
270
271
- Trait aliases can also now sepcify an optional body, which can contain various
271
+ Trait aliases can also now specify an optional body, which can contain various
272
272
items. These items are themselves aliases for items defined on the respective
273
273
traits.
274
274
@@ -361,11 +361,11 @@ We can use this to split the `Deref` trait, as suggested in the motivation secti
361
361
``` rust
362
362
// ! New `Deref`
363
363
364
- pub trait Reciever {
364
+ pub trait Receiver {
365
365
type Target : ? Sized ;
366
366
}
367
367
368
- pub trait DerefToTarget : Reciever {
368
+ pub trait DerefToTarget : Receiver {
369
369
fn deref (& self ) -> & Self :: Target ;
370
370
}
371
371
@@ -573,7 +573,7 @@ trait Bar {
573
573
trait FooBar = Foo + Bar ;
574
574
```
575
575
576
- If the confliting items all have defaults, the alias will be implementable, but
576
+ If the conflicting items all have defaults, the alias will be implementable, but
577
577
overriding the defaults will not be possible.
578
578
579
579
``` rust
@@ -750,7 +750,7 @@ trait Alias = Frob {
750
750
}
751
751
```
752
752
753
- Modifers like ` const ` , ` async ` , ` unsafe ` , or ` extern "C" ` are neither required
753
+ Modifiers like ` const ` , ` async ` , ` unsafe ` , or ` extern "C" ` are neither required
754
754
nor accepted.
755
755
756
756
You are allowed to specify generic parameters, in order to reorder them. But you
@@ -825,7 +825,7 @@ where
825
825
826
826
N.B.: when using implementable trait aliases to split a trait into two parts
827
827
* without* a supertrait/subtrait relationship between them, you have to be
828
- careful in order to preserve ` dyn ` compatiblilty .
828
+ careful in order to preserve ` dyn ` compatibility .
829
829
830
830
``` rust
831
831
trait Foo {
0 commit comments