Commit 39e97e7f authored by Laszlo Domoszlai's avatar Laszlo Domoszlai
Browse files

fix typo

parent 0a462cac
......@@ -244,7 +244,7 @@ void __string_slice(int dst_idx)
chars = str->_array._chars;
}
int length = idx2->_int - idx1->_int + 1;
int length = idx2->_int - idx1->_int;
target = string_create(target, length);
memcpy(target->_array._chars, chars + idx1->_int, length);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment