Skip to content

Commit

Permalink
docs(utils) fix deprecation docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Jan 31, 2021
1 parent f5a493e commit 4331324
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/pl/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 4331324

Please sign in to comment.