Show default argument explicitly for Rexexp#match? [ci skip]

This commit is contained in:
Martin Dürst 2021-09-01 09:37:13 +09:00
parent 45b8846bec
commit f2ffa88964
1 changed files with 2 additions and 2 deletions

2
re.c
View File

@ -3334,7 +3334,7 @@ rb_reg_match_m(int argc, VALUE *argv, VALUE re)
/*
* call-seq:
* rxp.match?(str) -> true or false
* rxp.match?(str,pos) -> true or false
* rxp.match?(str, pos=0) -> true or false
*
* Returns <code>true</code> or <code>false</code> to indicate whether the
* regexp is matched or not without updating $~ and other related variables.