Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/2-structs-enums-lifetimes.md
Original file line number Diff line number Diff line change
Expand Up @@ -1444,7 +1444,7 @@ where F: Fn(f64)->f64 {
let res2 = apply(3.14, |x| x.sin());
```

In English: `apply` works for _any_ type `T` such that `T` implements `Fn(f64)->f64` - that
In English: `apply` works for _any_ type `F` such that `F` implements `Fn(f64)->f64` - that
is, is a function which takes `f64` and returns `f64`.

After the call to `apply(3.0,lin)`, trying to access `lin` gives an interesting error:
Expand Down