From 075c2d3608e5e8be18ac4721b371a92e33f63252 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 8 May 2015 10:06:25 +0100 Subject: [PATCH] Fix documentation. --- src/lua/lua_regexp.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/lua/lua_regexp.c b/src/lua/lua_regexp.c index 221d8d308..48af6f7ab 100644 --- a/src/lua/lua_regexp.c +++ b/src/lua/lua_regexp.c @@ -333,12 +333,7 @@ lua_regexp_search (lua_State *L) * * @param {string} line match the specified line against regexp object * @param {bool} match raw regexp instead of utf8 one - * @return {table or nil} table of strings matched or nil - * @example - * local re = regexp.create_cached('/^\s*([0-9]+)\s*$/') - * -- returns nil - * local m1 = re:match('blah') - * local m2 = re:match(' 190 ') + * @return {bool} true if `line` matches */ static int lua_regexp_match (lua_State *L) @@ -395,12 +390,7 @@ lua_regexp_match (lua_State *L) * @param {string} line match the specified line against regexp object * @param {number} max_matches maximum number of matches * @param {bool} match raw regexp instead of utf8 one - * @return {table or nil} table of strings matched or nil - * @example - * local re = regexp.create_cached('/^\s*([0-9]+)\s*$/') - * -- returns nil - * local m1 = re:match('blah') - * local m2 = re:match(' 190 ') + * @return {number} number of matches found in the `line` argument */ static int lua_regexp_matchn (lua_State *L) -- 2.39.5