Skip to content

Commit 1ebef0b

Browse files
committed
Do some light copyediting
1 parent 356616b commit 1ebef0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rust-2024/gen-keyword.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ The `gen` keyword has been reserved as part of [RFC #3513] to introduce "gen blo
1717

1818
## Migration
1919

20-
Introducing the `gen` keyword can cause a problem for any identifiers that are already called `gen`. For example, any variable or function name called `gen` would clash with the new keyword. To work around this issue, Rust supports the `r#` prefix for a [raw identifier], which allows identifiers to overlap with keywords.
20+
Introducing the `gen` keyword can cause a problem for any identifiers that are already called `gen`. For example, any variable or function name called `gen` would clash with the new keyword. To overcome this, Rust supports the `r#` prefix for a [raw identifier], which allows identifiers to overlap with keywords.
2121

22-
The [`keyword_idents_2024`] lint will automatically modify any identifier named `gen` to be `r#gen` so that the code continues to work on both editions. This lint is part of the `rust-2024-compatibility` lint group, which will automatically be applied when running `cargo fix --edition`. To migrate your code to be Rust 2024 Edition compatible, run:
22+
The [`keyword_idents_2024`] lint will automatically modify any identifier named `gen` to be `r#gen` so that code continues to work on both editions. This lint is part of the `rust-2024-compatibility` lint group, which will automatically be applied when running `cargo fix --edition`. To migrate your code to be Rust 2024 Edition compatible, run:
2323

2424
```sh
2525
cargo fix --edition
@@ -49,7 +49,7 @@ fn main() {
4949
}
5050
```
5151

52-
Alternatively, you can manually enable the lint to find places where the `gen` identifiers need to be modified to be `r#gen`:
52+
Alternatively, you can manually enable the lint to find places where `gen` identifiers need to be modified to `r#gen`:
5353

5454
```rust
5555
// Add this to the root of your crate to do a manual migration.

0 commit comments

Comments
 (0)