Skip to content

Commit c1750f8

Browse files
committed
fix errors in background
1 parent dbf5818 commit c1750f8

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

src/appendix/background.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,17 +185,25 @@ Another example:
185185
```rust,ignore
186186
fn foo<'a>(_: &'a usize)
187187
```
188-
This function claims that there is some lifetime `'a` (determined by the
189-
caller) such that it is well-typed: ` 'a: well_typed(foo)`.
188+
This function claims that for any lifetime `'a` (determined by the
189+
caller), it is well-typed: ` 'a: well_typed(foo)`.
190190

191-
One more example:
191+
Another example:
192192

193193
```rust,ignore
194194
fn foo<F>()
195-
where for<'a> F: Fn(&'a u8),
195+
where for<'a> F: Fn(&'a u8)
196+
```
197+
This function claims that it is well-typed for all types `F` such that for all
198+
lifetimes `'a`, `F: Fn(&'a u8)`: `∀ F: ∀ 'a: (F: Fn(&'a u8)) => well_typed(foo)`.
199+
200+
One more example:
201+
202+
```rust,ignore
203+
fn foo(_: dyn Debug)
196204
```
197-
This function claims that for all lifetimes `'a` and types `F` satisfying the
198-
bound, it is well-typed: `∀ F, 'a: (F: Fn(&'a u8)) => well_typed(foo)`.
205+
This function claims that there exists some type `T` that implements `Debug`
206+
such that the function is well-typed: `∃ T: (T: Debug) and well_typed(foo)`.
199207

200208
<a name="variance"></a>
201209

0 commit comments

Comments
 (0)