diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2020-04-14 12:38:30 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2020-04-14 12:39:16 +0900 |
commit | c79e3a5957ac57d2d4e9ecd82648c7ecca7929d2 (patch) | |
tree | 5603055753b3081b8d749d05d7fab37efe0dc53e /re.c | |
parent | 310ef9f40b350957a1a6d6236ce453ff9f73e81d (diff) |
Add {Regexp,String}#match with block to call-seq [ci skip]
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |