mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-08 07:50:00 +00:00
build: make literal paths portable
Use fs.path.sep_str instead of a slash, in literal paths.
This commit is contained in:
@@ -435,10 +435,11 @@ const HealStep = struct {
|
||||
|
||||
/// Heals all the exercises.
|
||||
fn heal(allocator: Allocator, exercises: []const Exercise, work_path: []const u8) !void {
|
||||
const sep = std.fs.path.sep_str;
|
||||
const join = fs.path.join;
|
||||
|
||||
const exercises_path = "exercises";
|
||||
const patches_path = "patches/patches";
|
||||
const patches_path = "patches" ++ sep ++ "patches";
|
||||
|
||||
for (exercises) |ex| {
|
||||
const name = ex.name();
|
||||
|
||||
Reference in New Issue
Block a user