Merge branch 'trunk' into str_trim

This commit is contained in:
Dan Gieschen Knutson 2021-10-27 18:01:29 -05:00 committed by GitHub
commit 02117ba512
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 233 additions and 158 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);