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:
Travis Cross 2024-03-15 03:12:41 +00:00
parent caf93bad67
commit 8846955ab6
1 changed files with 2 additions and 2 deletions

View File

@ -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.
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
@ -163,7 +163,7 @@ gen {
[reference-level-explanation]: #reference-level-explanation
## 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