ruby-changes:67516
From: Martin <ko1@a...>
Date: Wed, 1 Sep 2021 09:38:22 +0900 (JST)
Subject: [ruby-changes:67516] f2ffa88964 (master): Show default argument explicitly for Rexexp#match? [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=f2ffa88964 From f2ffa8896436050af679db6b5dff7b1fc35ef819 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20D=C3=BCrst?= <duerst@i...> Date: Wed, 1 Sep 2021 09:37:13 +0900 Subject: Show default argument explicitly for Rexexp#match? [ci skip] --- re.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/re.c b/re.c index 7421519..e4c98eb 100644 --- a/re.c +++ b/re.c @@ -3333,8 +3333,8 @@ rb_reg_match_m(int argc, VALUE *argv, VALUE re) https://github.com/ruby/ruby/blob/trunk/re.c#L3333 /* * call-seq: - * rxp.match?(str) -> true or false - * rxp.match?(str,pos) -> true or false + * rxp.match?(str) -> 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. -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/