ruby-changes:42841
From: yui-knk <ko1@a...>
Date: Thu, 5 May 2016 13:42:59 +0900 (JST)
Subject: [ruby-changes:42841] yui-knk:r54915 (trunk): * string.c (rb_str_sub): Fix a special match variable name.
yui-knk 2016-05-05 14:39:35 +0900 (Thu, 05 May 2016) New Revision: 54915 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54915 Log: * string.c (rb_str_sub): Fix a special match variable name. [ci skip] Modified files: trunk/ChangeLog trunk/string.c Index: string.c =================================================================== --- string.c (revision 54914) +++ string.c (revision 54915) @@ -4647,7 +4647,7 @@ rb_str_sub_bang(int argc, VALUE *argv, V https://github.com/ruby/ruby/blob/trunk/string.c#L4647 * <code>"\\k<n>"</code>, where <i>n</i> is a group name. If it is a * double-quoted string, both back-references must be preceded by an * additional backslash. However, within +replacement+ the special match - * variables, such as <code>&$</code>, will not refer to the current match. + * variables, such as <code>$&</code>, will not refer to the current match. * If +replacement+ is a String that looks like a pattern's capture group but * is actually not a pattern capture group e.g. <code>"\\'"</code>, then it * will have to be preceded by two backslashes like so <code>"\\\\'"</code>. Index: ChangeLog =================================================================== --- ChangeLog (revision 54914) +++ ChangeLog (revision 54915) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu May 5 14:41:05 2016 Yuichiro Kaneko <yui-knk@r...> + + * string.c (rb_str_sub): Fix a special match variable name. + [ci skip] + Thu May 5 12:22:17 2016 Nobuyoshi Nakada <nobu@r...> * vm_eval.c (rb_eval_cmd, rb_catch_obj): use TH_JUMP_TAG with the -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/