aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_regexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_regexp.c')
-rw-r--r--src/lua/lua_regexp.c14
1 files 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)