commit 86af24a87d2d211120cc65e35c029cf01734de87
parent 13e4aba768a946ecd56cf05722bba56986a26d84
Author: Eyal Sawady <ecs@d2evs.net>
Date: Sun, 7 Feb 2021 12:45:34 -0500
strings::concat: remove unused variable
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/strings/concat.ha b/strings/concat.ha
@@ -5,9 +5,8 @@ export fn concat(strs: str...) str = {
z += len(strs[i]);
};
let new = alloc([]u8, [], z + 1z);
- for (let i = 0z, j = 0z; i < len(strs); i += 1z) {
+ for (let i = 0z; i < len(strs); i += 1z) {
append(new, ...to_utf8(strs[i]));
- j += len(strs[i]);
};
append(new, 0u8);
return from_utf8_unsafe(new[..z]);