summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
Diffstat (limited to 're.c')
-rw-r--r--re.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/re.c b/re.c
index a429c33319..11f7e615b8 100644
--- a/re.c
+++ b/re.c
@@ -3265,8 +3265,8 @@ rb_reg_match2(VALUE re)
/*
* call-seq:
- * rxp.match(str) -> matchdata or nil
- * rxp.match(str,pos) -> matchdata or nil
+ * rxp.match(str, pos=0) -> matchdata or nil
+ * rxp.match(str, pos=0) {|match| block } -> obj
*
* Returns a MatchData object describing the match, or
* <code>nil</code> if there was no match. This is equivalent to