From: Vsevolod Stakhov Date: Wed, 23 Oct 2019 11:49:54 +0000 (+0100) Subject: [Minor] Fix documentation X-Git-Tag: 2.1~37 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ecb3f35785027535eb002163ae076bb9dd14a8a2;p=rspamd.git [Minor] Fix documentation --- diff --git a/src/lua/lua_url.c b/src/lua/lua_url.c index 4b923d3ef..4f79d7b9c 100644 --- a/src/lua/lua_url.c +++ b/src/lua/lua_url.c @@ -23,6 +23,9 @@ * You can also create `rspamd_url` from any text. * @example local url = require "rspamd_url" +local mpool = require "rspamd_mempool" + +url.init("/usr/share/rspamd/effective_tld_names.dat") local pool = mpool.create() local res = url.create(pool, 'Look at: http://user@test.example.com/test?query") local t = res:to_table() @@ -757,7 +760,7 @@ lua_url_create (lua_State *L) } /*** - * @function url.create(tld_file) + * @function url.init(tld_file) * Initialize url library if not initialized yet by Rspamd * @param {string} tld_file for url library * @return nothing