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 381c8528ac..a722ac14b0 100644
--- a/string.c
+++ b/string.c
@@ -3902,7 +3902,7 @@ rb_str_reverse_bang(VALUE str)
while (s < e) {
c = *s;
*s++ = *e;
- *e-- = c;
+ *e-- = c;
}
}
else {