Skip to content

Commit a9169d1

Browse files
Fix more typos
1 parent 426324f commit a9169d1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

text/3437-implementable-trait-alias.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ impl Frob for MyType {
268268

269269
## Bodies for trait aliases
270270

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
272272
items. These items are themselves aliases for items defined on the respective
273273
traits.
274274

@@ -361,11 +361,11 @@ We can use this to split the `Deref` trait, as suggested in the motivation secti
361361
```rust
362362
//! New `Deref`
363363

364-
pub trait Reciever {
364+
pub trait Receiver {
365365
type Target: ?Sized;
366366
}
367367

368-
pub trait DerefToTarget: Reciever {
368+
pub trait DerefToTarget: Receiver {
369369
fn deref(&self) -> &Self::Target;
370370
}
371371

@@ -573,7 +573,7 @@ trait Bar {
573573
trait FooBar = Foo + Bar;
574574
```
575575

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
577577
overriding the defaults will not be possible.
578578

579579
```rust
@@ -750,7 +750,7 @@ trait Alias = Frob {
750750
}
751751
```
752752

753-
Modifers like `const`, `async`, `unsafe`, or `extern "C"` are neither required
753+
Modifiers like `const`, `async`, `unsafe`, or `extern "C"` are neither required
754754
nor accepted.
755755

756756
You are allowed to specify generic parameters, in order to reorder them. But you
@@ -825,7 +825,7 @@ where
825825

826826
N.B.: when using implementable trait aliases to split a trait into two parts
827827
*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.
829829

830830
```rust
831831
trait Foo {

0 commit comments

Comments
 (0)