Skip to content

Commit 8846955

Browse files
committed
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.
1 parent caf93ba commit 8846955

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text/0000-gen-fn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Iterators created with `gen` return `None` once they `return` (implicitly at the
8585

8686
Starting in the 2024 edition, `gen` is a keyword that cannot be used for naming any items or bindings.
8787
This means during the migration to the 2024 edition, all variables, functions, modules, types, etc. named `gen` must be renamed
88-
or be referred to via `k#gen`.
88+
or be referred to via `r#gen`.
8989

9090
## Returning/finishing an iterator
9191

@@ -163,7 +163,7 @@ gen {
163163
[reference-level-explanation]: #reference-level-explanation
164164
## New keyword
165165

166-
In the 2024 edition we reserve `gen` as a keyword. Previous editions will use `r#gen` to get the same features.
166+
In the 2024 edition we reserve `gen` as a keyword. Previous editions will use `k#gen` to get the same features.
167167

168168
## Error handling
169169

0 commit comments

Comments
 (0)