Remove deprecated zig features

This commit is contained in:
Locria Cyber 2021-10-26 20:21:55 -04:00
parent ed1e751123
commit 791c46fe0d
4 changed files with 8 additions and 6 deletions

View file

@ -93,7 +93,7 @@ pub const RocStr = extern struct {
if (length < roc_str_size) {
return RocStr.empty();
} else {
var new_bytes: []T = utils.alloc(length, RocStr.alignment) catch unreachable;
var new_bytes = utils.alloc(length, RocStr.alignment) catch unreachable;
var new_bytes_ptr: [*]u8 = @ptrCast([*]u8, &new_bytes);