-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Add more infor about function pointers to TRPL #27539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1. mention them in the function chapter 2. mention their coercion to closures in the closures chapter Fixes rust-lang#26746
r? @brson (rust_highfive has picked a reviewer for you, use r? to override) |
@bors r+ |
📌 Commit e4c229b has been approved by |
@bors: rollup |
1. mention them in the function chapter 2. mention their coercion to closures in the closures chapter Fixes rust-lang#26746
In this example, we don’t strictly need the intermediate variable `f`, | ||
the name of the function works just fine too: | ||
|
||
```ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be rust,ignore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rust
is assumed by default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@steveklabnik Only when using rustdoc, but not when generating the ebooks. I'd like to keep the Markdown sources as universal as possible. Don't worry about it, though. I'll send a PR later today to add rust
where necessary.
Fixes #26746