Skip to content

Fix Documentation Typo in libstd #15639

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

Merged
merged 1 commit into from
Jul 13, 2014
Merged

Fix Documentation Typo in libstd #15639

merged 1 commit into from
Jul 13, 2014

Conversation

supr
Copy link
Contributor

@supr supr commented Jul 13, 2014

  • Fixes a typo in the libstd documentation, referring UPD instead of UDP

bors added a commit that referenced this pull request Jul 13, 2014
* Fixes a typo in the libstd documentation, referring UPD instead of UDP
@bors bors closed this Jul 13, 2014
@bors bors merged commit 2cf68ba into rust-lang:master Jul 13, 2014
bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 13, 2023
…re, r=lnicola

Fix inlining closures from local variables and functions

Previously, closures were not properly wrapped in parentheses for the `inline_local_variable` and `inline_call` assists, leading to the usages being incorrectly called:

```rust
fn main() {
    let $0f = || 2;
    let _ = f();
}
```

Now produces:

```rust
fn main() {
    let _ = (|| 2)();
}
```

Instead of:

```rust
fn main() {
    let _ = || 2();
}
```

Closes rust-lang#15639
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants