summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
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 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+.
*