summaryrefslogtreecommitdiff
path: root/examples/resources/lib/utillib.lua
diff options
context:
space:
mode:
authorjussi2024-01-30 13:36:23 +0200
committerjussi2024-01-30 13:36:23 +0200
commitd21512d88c2e24cf8cb230d29fb253fb5efd1661 (patch)
tree87b62953f4996344d68b93bd8228fc67f07be77d /examples/resources/lib/utillib.lua
parent143453af9ea9be82b2d58d665bed62abb716e21f (diff)
downloadreilua-enhanced-d21512d88c2e24cf8cb230d29fb253fb5efd1661.tar.gz
reilua-enhanced-d21512d88c2e24cf8cb230d29fb253fb5efd1661.tar.bz2
reilua-enhanced-d21512d88c2e24cf8cb230d29fb253fb5efd1661.zip
Rune lib and __concat for variable libs.
Diffstat (limited to 'examples/resources/lib/utillib.lua')
-rw-r--r--examples/resources/lib/utillib.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/resources/lib/utillib.lua b/examples/resources/lib/utillib.lua
index 95184b0..0b54e12 100644
--- a/examples/resources/lib/utillib.lua
+++ b/examples/resources/lib/utillib.lua
@@ -83,14 +83,14 @@ function utillib.tableLen( t )
return count
end
-function utillib.split( str, sep )
+function utillib.split( string, sep )
if sep == nil then
sep = "%s"
end
local t = {}
- for str in string.gmatch( str, "([^"..sep.."]+)" ) do
+ for str in string.gmatch( string, "([^"..sep.."]+)" ) do
table.insert( t, str )
end