From e69aaa400fc1e0990076f07b694e40663d12986d Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Thu, 3 Feb 2022 09:32:40 -0800 Subject: [PATCH] Update rfcs/generalized-iteration.md Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com> --- rfcs/generalized-iteration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ```