aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authoryui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-05 05:39:35 +0000
committeryui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-05 05:39:35 +0000
commitdf5f8624ba00de18c7b96ac94fdbba07d33e4605 (patch)
tree089bab4d0c4f1ab4db0e877cd95e2b7355e77279 /string.c
parent41bdcc2ea8b1c8237b5a92ec2845cb3d76e37c36 (diff)
downloadruby-df5f8624ba00de18c7b96ac94fdbba07d33e4605.tar.gz
* 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
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 9ccf0933e2..a7502b4166 100644
--- a/string.c
+++ b/string.c
@@ -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
* 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>.