Revised exercises due to the changes of Zig version 0.11.0-dev.3853

This commit is contained in:
Chris Boesch 2023-06-26 23:43:39 +02:00
parent a57926bef2
commit a0a9920b78
11 changed files with 16 additions and 13 deletions

View file

@ -53,7 +53,7 @@ fn isPangram(str: []const u8) bool {
// and are numbered sequentially, we simply subtract the
// first letter (in this case the 'a') from the character
// found, and thus get the position of the desired bit
bits |= @as(u32, 1) << @truncate(u5, ascii.toLower(c) - 'a');
bits |= @as(u32, 1) << @truncate(ascii.toLower(c) - 'a');
}
}
// last we return the comparison if all 26 bits are set,