summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2020-04-14 12:38:30 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2020-04-14 12:39:16 +0900
commitc79e3a5957ac57d2d4e9ecd82648c7ecca7929d2 (patch)
tree5603055753b3081b8d749d05d7fab37efe0dc53e /string.c
parent310ef9f40b350957a1a6d6236ce453ff9f73e81d (diff)
Add {Regexp,String}#match with block to call-seq [ci skip]
Diffstat (limited to 'string.c')
-rw-r--r--string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/string.c b/string.c
index ca21e0001c..c64b2735f9 100644
--- a/string.c
+++ b/string.c
@@ -3841,8 +3841,8 @@ static VALUE get_pat(VALUE);
/*
* call-seq:
- * str.match(pattern) -> matchdata or nil
- * str.match(pattern, pos) -> matchdata or nil
+ * str.match(pattern, pos=0) -> matchdata or nil
+ * str.match(pattern, pos=0) {|match| block } -> obj
*
* Converts <i>pattern</i> to a Regexp (if it isn't already one),
* then invokes its <code>match</code> method on the receiver.