var iter = std.mem.split(u8, input, " ");
Regular split is deprecated.
There is also an error in build.zig.zon file:
.name = .codecrafters_http_server
error: expected string literal
So it should be wrapped in double quotes.
var iter = std.mem.split(u8, input, " ");
Regular split is deprecated.
There is also an error in build.zig.zon file:
.name = .codecrafters_http_server
error: expected string literal
So it should be wrapped in double quotes.
Hey @WojciechChuchro, thanks for highlighting the issues!
Could you confirm which version of Zig you’re using?
We’re currently using Zig 0.14, which introduced some breaking changes. For example:
.name = "codecrafters_http_server"
will now throw an error:
var iter = std.mem.split(u8, input, " ");
Regular split is deprecated.
Would you mind sharing more details for split
?
Closing this thread due to inactivity. If you still need assistance, feel free to reopen or start a new discussion!
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.