diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-22 15:22:22 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-22 15:22:22 +0000 |
commit | c88de9e2e245e38e8b8e35a2a2b9741fcf069868 (patch) | |
tree | 2c617633903c0dfee3b8d2e25db7d72f02cd2778 /string.c | |
parent | 26342175dd5cd66e01779761262faa0c12200851 (diff) | |
download | ruby-c88de9e2e245e38e8b8e35a2a2b9741fcf069868.tar.gz |
fix backslash [ci skip]
* string.c (rb_str_tr): [DOC] Escape backslash in String#tr
documentation. [Fix GH-1063]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6106,7 +6106,7 @@ rb_str_tr_bang(VALUE str, VALUE src, VALUE repl) * "hello".tr('a-y', 'b-z') #=> "ifmmp" * "hello".tr('^aeiou', '*') #=> "*e**o" * - * The backslash character <code>\</code> can be used to escape + * The backslash character <code>\\</code> can be used to escape * <code>^</code> or <code>-</code> and is otherwise ignored unless it * appears at the end of a range or the end of the +from_str+ or +to_str+: * |