Skip to content

Commit 6533cce

Browse files
oli-obkmark-i-m
authored andcommitted
Update existential-types.md
1 parent 9efa9f1 commit 6533cce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/existential-types.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type.
77

88
In the language they are expressed via
99

10-
```rust
10+
```
1111
existential type Foo: Bar;
1212
```
1313

@@ -17,7 +17,7 @@ the `Bar` trait's interface.
1717
Since there needs to be a concrete background type, you can currently
1818
express that type by using the existential type in a "defining use site".
1919

20-
```rust
20+
```
2121
struct Struct;
2222
impl Bar for Struct { /* stuff */ }
2323
fn foo() -> Foo {
@@ -45,4 +45,4 @@ of existential types to be defining use sites.
4545
### Associated existential types
4646

4747
Associated existential types can be defined by any other associated item
48-
on the same trait `impl` or a child of these associated items.
48+
on the same trait `impl` or a child of these associated items.

0 commit comments

Comments
 (0)