diff options
| author | Chris Boesch <chrboesch@noreply.codeberg.org> | 2026-02-27 19:43:31 +0100 |
|---|---|---|
| committer | Chris Boesch <chrboesch@noreply.codeberg.org> | 2026-02-27 19:43:31 +0100 |
| commit | 88510735e13f8c5cd7bbb2d08ba1cbfd407dca04 (patch) | |
| tree | 26b711143cd31e89d3a2489d2ac6ab562e899eea /build.zig | |
| parent | 8c119bebdc66becac60e7ef035a993e422bd8972 (diff) | |
| parent | 07031c5daac4291e4d23599a944b84e6b434f9c2 (diff) | |
Merge branch 'main' into emphasize-for-loop-range
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -278,7 +278,8 @@ pub fn build(b: *Build) !void { return error.UnexpectedEOF; } - starting_exercise = try std.fmt.parseInt(u32, contents, 10); + const trimmed_contents = std.mem.trim(u8, contents, "\r\n"); + starting_exercise = try std.fmt.parseInt(u32, trimmed_contents, 10); } else |err| { switch (err) { std.Io.File.OpenError.FileNotFound => { |
