summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-16 19:11:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-16 19:11:37 +0000
commit85ba516877f26444bf9382f19bdb5d94527de945 (patch)
treeaa0cada526676d177346933be4876ad28629058d
parentd312b467a4efc98dbc2dcaa5e7b15cfb9ebde61a (diff)
string.c: escape a backslash [ci skip]
* string.c (rb_str_count): [DOC] add a backslash to escape a backslash itself. [ruby-core:66321] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index bd03575d58c..0c0d0dd9045 100644
--- a/string.c
+++ b/string.c
@@ -6145,7 +6145,7 @@ rb_str_tr_s(VALUE str, VALUE src, VALUE repl)
* intersection of these sets defines the characters to count in +str+. Any
* +other_str+ that starts with a caret <code>^</code> is negated. The
* sequence <code>c1-c2</code> means all characters between c1 and c2. The
- * backslash character <code>\</code> can be used to escape <code>^</code> or
+ * 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
* sequence or the end of a +other_str+.
*