mirror of https://github.com/rust-lang/rfcs
Fix where we fixed `k#gen`
We meant to change `r#gen` to `k#gen` on one line to fix an apparent earlier search/replace error, and we erroneously changed it on a different line. Let's fix the correct line and fix the mistaken fix.
This commit is contained in:
parent
caf93bad67
commit
8846955ab6
|
@ -85,7 +85,7 @@ Iterators created with `gen` return `None` once they `return` (implicitly at the
|
||||||
|
|
||||||
Starting in the 2024 edition, `gen` is a keyword that cannot be used for naming any items or bindings.
|
Starting in the 2024 edition, `gen` is a keyword that cannot be used for naming any items or bindings.
|
||||||
This means during the migration to the 2024 edition, all variables, functions, modules, types, etc. named `gen` must be renamed
|
This means during the migration to the 2024 edition, all variables, functions, modules, types, etc. named `gen` must be renamed
|
||||||
or be referred to via `k#gen`.
|
or be referred to via `r#gen`.
|
||||||
|
|
||||||
## Returning/finishing an iterator
|
## Returning/finishing an iterator
|
||||||
|
|
||||||
|
@ -163,7 +163,7 @@ gen {
|
||||||
[reference-level-explanation]: #reference-level-explanation
|
[reference-level-explanation]: #reference-level-explanation
|
||||||
## New keyword
|
## New keyword
|
||||||
|
|
||||||
In the 2024 edition we reserve `gen` as a keyword. Previous editions will use `r#gen` to get the same features.
|
In the 2024 edition we reserve `gen` as a keyword. Previous editions will use `k#gen` to get the same features.
|
||||||
|
|
||||||
## Error handling
|
## Error handling
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue