Skip to content

Commit 1b207d7

Browse files
roxelocalebcartwrightehuss
authored
Apply suggestions from code review
Co-authored-by: Caleb Cartwright <[email protected]> Co-authored-by: Eric Huss <[email protected]>
1 parent 5987f14 commit 1b207d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

posts/2021-08-01-disjoint-capture-in-closures.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: "Introducing Disjoint Capture in Closures"
44
author: The RFC 2229 working group <https://www.rust-lang.org/governance/teams/compiler#wg-rfc-2229>
55
---
66

7-
One of the major features of the [upcoming Rust 2021 Edition](https://blog.rust-lang.org/2021/05/11/edition-2021.html)) is a change to how Rust closures work. This change makes closure captures more precise, eliminating common borrow check errors. As a result, it involves some (minor) changes to Rust semantics, reason why it is tied to the Rust 2021 edition.
7+
One of the major features of the [upcoming Rust 2021 Edition](https://blog.rust-lang.org/2021/05/11/edition-2021.html)) is a change to how Rust closures work. This change makes closure captures more precise, eliminating common borrow check errors. As a result, it involves some (minor) changes to Rust semantics, which is why it is tied to the Rust 2021 edition.
88

99
Like any Edition migration, we have also created lints that will warn you of upcoming changes and suggest precise edits to preserve the semantics of your code. This blog post will explain the new feature and also tell you how you can try it out today on nightly if you like.
1010

@@ -55,8 +55,8 @@ The feature also includes (minor) breaking changes to the Rust semantics which a
5555

5656
Interested in testing this out? You can now try disjoint capture in Rust closures on rust nightly using `#![feature(capture_disjoint_fields)]`.
5757

58-
If you would like to be warned of semantics change that may impact your code, you can follow migration instructions provided in the (2021 Edition Guide)[https://doc.rust-lang.org/nightly/edition-guide/rust-2021/disjoint-capture-in-closures.html#migration]
58+
If you would like to be warned of semantics change that may impact your code, you can follow migration instructions provided in the [2021 Edition Guide](https://doc.rust-lang.org/nightly/edition-guide/rust-2021/disjoint-capture-in-closures.html#migration).
5959

6060
## How to submit bugs?
6161

62-
To submit a bug simply [open an issue](https://github.com/rust-lang/rust/issues/new/choose) and tag the RFC 2229 working group using `@rust-lang/wg-rfc-2229`. We hope to create the best experince posible so no issue is too small, even a confusing error messages is worth reporting.
62+
To submit a bug simply [open an issue](https://github.com/rust-lang/rust/issues/new/choose) and tag the RFC 2229 working group using `@rust-lang/wg-rfc-2229`. We hope to create the best experince posible so no issue is too small, even a confusing error messages is worth reporting.

0 commit comments

Comments
 (0)