Update rfcs/generalized-iteration.md

Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com>
This commit is contained in:
Arseny Kapoulkine 2022-02-03 09:32:40 -08:00 committed by GitHub
parent 57b7d723bf
commit e69aaa400f
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,7 @@ To support self-iterating objects, we modify the iteration protocol as follows:
```lua
if getmetatable(gen) and getmetatable(gen).__iter then
gen, state, index = getmetatable(state).__iter(gen)
gen, state, index = getmetatable(gen).__iter(gen)
end
```