From c653b73f75807d8d10f96bb52d3c7926e3e5064e Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Thu, 1 Feb 2024 14:40:41 +0100 Subject: [PATCH] Change var name --- lib/functions.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/functions.rs b/lib/functions.rs index 6a5d7c1..f14e764 100644 --- a/lib/functions.rs +++ b/lib/functions.rs @@ -29,11 +29,11 @@ yield() const WRAP_IMPL_LUA: &str = r" local t = create(...) return function(...) - local results = { resume(t, ...) } - if results[1] then - return select(2, unpack(results)) + local r = { resume(t, ...) } + if r[1] then + return select(2, unpack(r)) else - error(results[2], 2) + error(r[2], 2) end end ";