diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-16 19:11:37 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-16 19:11:37 +0000 |
commit | 85ba516877f26444bf9382f19bdb5d94527de945 (patch) | |
tree | aa0cada526676d177346933be4876ad28629058d /string.c | |
parent | d312b467a4efc98dbc2dcaa5e7b15cfb9ebde61a (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
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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+. * |