Skip to content

Commit

Permalink
* expand tabs.
Browse files Browse the repository at this point in the history
  • Loading branch information
matzbot committed Jun 21, 2019
1 parent 8f51da5 commit 551ef27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion string.c
Original file line number Diff line number Diff line change
Expand Up @@ -5087,7 +5087,7 @@ rb_str_sub_bang(int argc, VALUE *argv, VALUE str)
if (rlen != plen) {
memmove(p + beg0 + rlen, p + beg0 + plen, len - beg0 - plen);
}
memmove(p + beg0, rp, rlen);
memmove(p + beg0, rp, rlen);
len += rlen - plen;
STR_SET_LEN(str, len);
TERM_FILL(&RSTRING_PTR(str)[len], TERM_LEN(str));
Expand Down

0 comments on commit 551ef27

Please sign in to comment.