aboutsummaryrefslogtreecommitdiff
path: root/src/cli/init_command.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli/init_command.zig')
-rw-r--r--src/cli/init_command.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli/init_command.zig b/src/cli/init_command.zig
index 9eb788dd0..33cf70caf 100644
--- a/src/cli/init_command.zig
+++ b/src/cli/init_command.zig
@@ -80,7 +80,7 @@ pub const InitCommand = struct {
}
var new = try allocator.alloc(u8, input.len);
- for (input) |c, i| {
+ for (input, 0..) |c, i| {
if (c == ' ' or c == '"' or c == '\'') {
new[i] = '-';
} else {
@@ -180,7 +180,7 @@ pub const InitCommand = struct {
for (paths_to_try) |path| {
if (exists(path)) {
- fields.entry_point = std.mem.span(path);
+ fields.entry_point = bun.asByteSlice(path);
break :infer;
}
}