diff options
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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>. |