aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-22 15:22:22 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-22 15:22:22 +0000
commitbcc07ef4d1b4e447c8341688f5e06f11b43c000a (patch)
tree2c617633903c0dfee3b8d2e25db7d72f02cd2778 /string.c
parent77a952d1fb140b748debe142b1a408b89abdf409 (diff)
downloadruby-bcc07ef4d1b4e447c8341688f5e06f11b43c000a.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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 99f0c1e9f8..af744c7607 100644
--- a/string.c
+++ b/string.c
@@ -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+:
*