This commit is contained in:
Folkert 2021-02-19 19:22:05 +01:00
parent 17fddaf0dd
commit 9473a332db
6 changed files with 6 additions and 25 deletions

View file

@ -50,9 +50,6 @@ pub const RocStr = extern struct {
const length = @sizeOf(usize) + number_of_chars;
var new_bytes: []usize = allocator.alloc(usize, length) catch unreachable;
const stdout = std.io.getStdOut().writer();
stdout.print("Hello, {d}!\n", .{length}) catch unreachable;
if (in_place == InPlace.InPlace) {
new_bytes[0] = @intCast(usize, number_of_chars);
} else {