Revised exercises due to the changes of Zig version 0.11.0-dev.3853
This commit is contained in:
parent
a57926bef2
commit
a0a9920b78
11 changed files with 16 additions and 13 deletions
|
|
@ -429,7 +429,7 @@ fn printTrip(trip: []?TripItem) void {
|
|||
// We convert the usize length to a u8 with @intCast(), a
|
||||
// builtin function just like @import(). We'll learn about
|
||||
// these properly in a later exercise.
|
||||
var i: u8 = @intCast(u8, trip.len);
|
||||
var i: u8 = @intCast(trip.len);
|
||||
|
||||
while (i > 0) {
|
||||
i -= 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue