ReadMe error in options.env example

This commit is contained in:
2025-06-19 04:55:52 +00:00
committed by GitHub
parent e04ddbe3ae
commit e0710a284d

View File

@@ -149,7 +149,7 @@ Through side effects, like writing to a database. You will have to provide the s
local val = 1 local val = 1
local env = { write_db = function(new_val) val = new_val end } local env = { write_db = function(new_val) val = new_val end }
sandbox.run('write_db(2)') sandbox.run('write_db(2)', { env = env })
assert(val = 2) assert(val = 2)
Through returned values: Through returned values: