1
0

Merge pull request #3699 from cuberite/apidump_patch

APIDump: Add missing 'My' to generated function hook example.
This commit is contained in:
NiLSPACE 2017-05-09 08:56:57 +02:00 committed by GitHub
commit 72cb84e4d0

View File

@ -298,7 +298,7 @@ local function WriteHtmlHook(a_Hook, a_HookNav)
f:write(LinkifyString(a_Hook.Desc, HookName));
f:write("</p>\n<hr /><h1>Callback function</h1>\n<p>The default name for the callback function is ");
f:write(a_Hook.DefaultFnName, ". It has the following signature:\n");
f:write("<pre class=\"prettyprint lang-lua\">function ", HookName, "(");
f:write("<pre class=\"prettyprint lang-lua\">function My", HookName, "(");
if (a_Hook.Params == nil) then
a_Hook.Params = {};
end