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 8f95b42fc1..f011fddc7c 100644
--- a/string.c
+++ b/string.c
@@ -1578,7 +1578,7 @@ rb_enc_cr_str_buf_cat(VALUE str, const char *ptr, long len,
}
memcpy(RSTRING_PTR(str) + RSTRING_LEN(str), ptr, len);
STR_SET_LEN(str, total);
- RSTRING_PTR(str)[total] = '\0'; // sentinel
+ RSTRING_PTR(str)[total] = '\0'; /* sentinel */
ENCODING_CODERANGE_SET(str, res_encindex, res_cr);
return str;