aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2012-01-01 13:21:26 -0500
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2012-01-01 13:21:26 -0500
commit6143b96a6d71a0d8d04ed7d4ddc3696a141112c7 (patch)
tree56921da108d03d2343f1767076aec3c98599835c
parent3d6f697add4606a1a84f9d77993d8f05daf4f8fe (diff)
Change in core/compat.lua to not confuse LuaDoc.
-rw-r--r--core/compat.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/compat.lua b/core/compat.lua
index c5248204..71db0c03 100644
--- a/core/compat.lua
+++ b/core/compat.lua
@@ -27,7 +27,7 @@ function xpcall(f, error, ...)
end
-- In Lua 5.1, `module` exists.
-module = nil
+_G.module = nil -- use _G prefix so LuaDoc does not get confused
-- In Lua 5.1, `package.loaders` is `package.searchers`
package.searchers = package.loaders