From 43313240d7fe3c5f51ea77072164a9d1690ffd56 Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Sun, 31 Jan 2021 08:35:25 +0100 Subject: [PATCH] docs(utils) fix deprecation docs --- lua/pl/utils.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/pl/utils.lua b/lua/pl/utils.lua index 4525ea19..a8bf360d 100644 --- a/lua/pl/utils.lua +++ b/lua/pl/utils.lua @@ -634,7 +634,7 @@ do -- function from the `compat` module for earlier versions). -- -- Note: only applications should set/change this function, libraries should not. - -- @function a callback with signature: `function(msg, trace)` both arguments are strings. + -- @param func a callback with signature: `function(msg, trace)` both arguments are strings. -- @see utils.raise_deprecation -- @usage -- -- write to the Nginx logs with OpenResty @@ -643,7 +643,7 @@ do -- end) -- -- -- disable deprecation warnings - -- utils.deprecation_warning() + -- utils.set_deprecation_func() function utils.set_deprecation_func(func) if func == nil then deprecation_func = function() end