Browse Source

[Minor] Fix `get_tld()` functions descriptions

tags/1.4.0
Alexander Moisseev 7 years ago
parent
commit
28d2f7eb48
2 changed files with 4 additions and 4 deletions
  1. 2
    2
      src/lua/lua_url.c
  2. 2
    2
      src/lua/lua_util.c

+ 2
- 2
src/lua/lua_url.c View File

@@ -338,8 +338,8 @@ lua_url_get_phished (lua_State *L)

/***
* @method url:get_tld()
* Get top level domain part of the url host
* @return {string} top level part of the url host
* Get effective second level domain part (eSLD) of the url host
* @return {string} effective second level domain part (eSLD) of the url host
*/
static gint
lua_url_get_tld (lua_State *L)

+ 2
- 2
src/lua/lua_util.c View File

@@ -164,10 +164,10 @@ LUA_FUNCTION_DEF (util, humanize_number);

/***
* @function util.get_tld(host)
* Returns tld for the specified host
* Returns effective second level domain part (eSLD) for the specified host
*
* @param {string} host hostname
* @return {string} tld part of hostname or the full hostname
* @return {string} eSLD part of the hostname or the full hostname if eSLD was not found
*/
LUA_FUNCTION_DEF (util, get_tld);


Loading…
Cancel
Save