diff --git a/rfcs/generalized-iteration.md b/rfcs/generalized-iteration.md index 43304830..94946a1f 100644 --- a/rfcs/generalized-iteration.md +++ b/rfcs/generalized-iteration.md @@ -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 ```