diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-23 12:49:54 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-23 12:49:54 +0100 |
commit | ecb3f35785027535eb002163ae076bb9dd14a8a2 (patch) | |
tree | e9f13f3bd01d1a8161e7a39facf60ac61f7fa8ed /src/lua | |
parent | 2ee4ab715eadeaba2a23dcf44d5a93ad082e1b4b (diff) | |
download | rspamd-ecb3f35785027535eb002163ae076bb9dd14a8a2.tar.gz rspamd-ecb3f35785027535eb002163ae076bb9dd14a8a2.zip |
[Minor] Fix documentation
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_url.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 |