1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* string.c (rb_str_sub): Fix a special match variable name.

[ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
yui-knk 2016-05-05 05:39:35 +00:00
parent 84f94652b0
commit deca1d8007
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Thu May 5 14:41:05 2016 Yuichiro Kaneko <yui-knk@ruby-lang.org>
* string.c (rb_str_sub): Fix a special match variable name.
[ci skip]
Thu May 5 12:22:17 2016 Nobuyoshi Nakada <nobu@ruby-lang.org> Thu May 5 12:22:17 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm_eval.c (rb_eval_cmd, rb_catch_obj): use TH_JUMP_TAG with the * vm_eval.c (rb_eval_cmd, rb_catch_obj): use TH_JUMP_TAG with the

View file

@ -4647,7 +4647,7 @@ rb_str_sub_bang(int argc, VALUE *argv, VALUE str)
* <code>"\\k<n>"</code>, where <i>n</i> is a group name. If it is a * <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 * double-quoted string, both back-references must be preceded by an
* additional backslash. However, within +replacement+ the special match * 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 * 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 * 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>. * will have to be preceded by two backslashes like so <code>"\\\\'"</code>.