From 7127058930542d2c7375f1ce4e3a4b4f139198f0 Mon Sep 17 00:00:00 2001
From: Lukas Pioch
Date: Tue, 9 May 2017 05:50:55 +0200
Subject: [PATCH] APIDump: Add missing 'My' to generated function hook example.
---
Server/Plugins/APIDump/main_APIDump.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Server/Plugins/APIDump/main_APIDump.lua b/Server/Plugins/APIDump/main_APIDump.lua
index 022fe9975c..2c88846e70 100644
--- a/Server/Plugins/APIDump/main_APIDump.lua
+++ b/Server/Plugins/APIDump/main_APIDump.lua
@@ -298,7 +298,7 @@ local function WriteHtmlHook(a_Hook, a_HookNav)
f:write(LinkifyString(a_Hook.Desc, HookName));
f:write("
\n
Callback function
\nThe default name for the callback function is ");
f:write(a_Hook.DefaultFnName, ". It has the following signature:\n");
- f:write("
function ", HookName, "(");
+ f:write("function My", HookName, "(");
if (a_Hook.Params == nil) then
a_Hook.Params = {};
end